diff options
author | Brian C. Lane <bcl@redhat.com> | 2021-08-10 09:40:28 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2021-08-10 09:40:28 -0700 |
commit | fabd4e35427ab156d1e0b28745c926d0253a72cd (patch) | |
tree | dd54f62544f0f2c1570ac44d1416573c4296d278 /doc | |
parent | 964bc37f6c95308a64aa96534b29412ce55835fd (diff) | |
download | parted-fabd4e35427ab156d1e0b28745c926d0253a72cd.tar.gz |
Move Exception Option values into enum
Adding enums together doesn't create a new enum value, so when compiling
with warnings you will get warnings like:
warning: case value ‘96’ not in enumerated type
for PED_EXCEPTION_IGNORE_CANCEL
This moved the defines into the enum as new values so that they are
recognized as valid members of the enum with the values staying the
same.
NOTE: PED_EXCEPTION_OPTION_LAST *MUST* be the last of the individual
options, not the combined options.
Thanks to D. Hugh Redelmeier for this patch.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions