diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-25 12:07:01 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-25 16:13:10 -0800 |
commit | 42efd4553d0c00ab4e6020e4c03adef5ace0e874 (patch) | |
tree | 1999af954cbf68bd524bfae9567441ac7256ab15 /gzip.h | |
parent | dc90550e968a4beb528479b6381005392887fe33 (diff) | |
download | gzip-42efd4553d0c00ab4e6020e4c03adef5ace0e874.tar.gz |
maint: stop using obsolete stdnoreturn module
* bootstrap.conf (gnulib_modules): Remove stdnoreturn.
* gzip.h: Do not include stdnoreturn.h.
All uses of noreturn replaced by _Noreturn,
at start of declaration for benefit of C23.
* lib/.gitignore, m4/.gitignore: Remove names of
stdnoreturn-related files.
Diffstat (limited to 'gzip.h')
-rw-r--r-- | gzip.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -38,7 +38,6 @@ #include <sys/types.h> /* for off_t */ #include <time.h> #include <string.h> -#include <stdnoreturn.h> #define memzero(s, n) memset ((voidp)(s), 0, (n)) #define local static @@ -273,7 +272,7 @@ extern int unpack (int in, int out); extern int unlzh (int in, int out); /* in gzip.c */ -extern noreturn void abort_gzip (void); +_Noreturn extern void abort_gzip (void); /* in deflate.c */ extern off_t deflate (int pack_level); @@ -311,11 +310,11 @@ extern char *gzip_base_name (char *fname) _GL_ATTRIBUTE_PURE; extern int xunlink (char *fname); extern void make_simple_name (char *name); extern char *add_envopt (int *argcp, char ***argvp, char const *env); -extern noreturn void gzip_error (char const *m); -extern noreturn void xalloc_die (void); +_Noreturn extern void gzip_error (char const *m); +_Noreturn extern void xalloc_die (void); extern void warning (char const *m); -extern noreturn void read_error (void); -extern noreturn void write_error (void); +_Noreturn extern void read_error (void); +_Noreturn extern void write_error (void); extern void display_ratio (off_t num, off_t den, FILE *file); extern void fprint_off (FILE *, off_t, int); |