summaryrefslogtreecommitdiff
path: root/include/parted/unit.in.h
Commit message (Collapse)AuthorAgeFilesLines
* maint: Update copyright statements to 2022Brian C. Lane2023-03-241-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2022Brian C. Lane2022-03-231-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2021Brian C. Lane2021-01-181-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2020Brian C. Lane2020-12-111-1/+2
| | | | By running make update-copyright
* maint: Update copyright statements to 2019Brian C. Lane2019-08-121-1/+1
| | | | By running make update-copyright
* include/parted/unit.in.h: Specify const attribute to ped_unit_get_name()Shin'ichiro Kawasaki2019-08-091-1/+1
| | | | | | | | | | | | | | | | | | GCC 8 fails to compile libparted/unit.c with an error: CC unit.lo unit.c:155:1: error: function might be candidate for attribute 'const' [-Werror=suggest-attribute=const] ped_unit_get_name (PedUnit unit) ^~~~~~~~~~~~~~~~~ CC disk.lo cc1: all warnings being treated as errors Const attribute is required for the function ped_unit_get_name() because its return value is not affected by program status. To avoid the build failure, change attribute of the function from pure to const. Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp> Signed-off-by: Brian C. Lane <bcl@redhat.com>
* ped_unit_get_name: Resolve conflicting attributes 'const' and 'pure'dann frazier2018-10-161-1/+1
| | | | | | | | | | | The const and pure attributes conflict: error: ignoring attribute 'const' because it conflicts with attribute 'pure' [-Werror=attributes] pure functions may access global memory, const functions may not. ped_unit_get_name() accesses non-local variable unit_names, so drop const. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* maint: run "make update-copyright"Jim Meyering2014-05-251-1/+1
|
* maint: update all copyright year number rangesJim Meyering2013-01-061-1/+1
| | | | Run "make update-copyright".
* maint: rename public .h files to .in.hJim Meyering2012-01-091-0/+92
Generate .h files from .in.h files, so that we can continue to use _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST in the primary sources, without including them in publicly-installed files. Each generated (and later installed) header file gets expansions of those macros. * include/parted/Makefile.am: New rules. * .gitignore: Ignore the generated files. * Makefile.am (SUBDIRS): Reorder so we build in include/ before libparted, i.e., so that we generate the .h files we'll need.