diff options
author | Jim Meyering <meyering@fb.com> | 2017-11-09 20:13:47 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2017-11-09 20:46:03 -0800 |
commit | 3bd3681e0fbddf82ca7fa12af67cf139fe1e6379 (patch) | |
tree | 60ed26f84b8a190c2239f30d6fb7789500eaf6a6 /lib | |
parent | 15bd3ba5d514af6a307ecefb8d109b9a65067a88 (diff) | |
download | gzip-3bd3681e0fbddf82ca7fa12af67cf139fe1e6379.tar.gz |
maint: use noreturn, not ATTRIBUTE_NORETURN
Use gnulib's stdnoreturn module so we can include
<stdnoreturn.h> and the "noreturn" helper macro, thus
replacing the definition and uses of ATTRIBUTE_NORETURN.
* bootstrap.conf (gnulib_modules): Add stdnoreturn.
* gzip.h (ATTRIBUTE_NORETURN): Remove definition.
Include stdnoreturn.h and use "noreturn" for each
ATTRIBUTE_NORETURN-adorned function declaration.
* gzip.c (do_exit, try_help): Use "noreturn".
Diffstat (limited to 'lib')
-rw-r--r-- | lib/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/.gitignore b/lib/.gitignore index 4df1a38..6b1ea36 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -219,3 +219,4 @@ /xsize.h /yesno.c /yesno.h +/stdnoreturn.in.h |