diff options
Diffstat (limited to 'bdftruncate.c')
-rw-r--r-- | bdftruncate.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bdftruncate.c b/bdftruncate.c index 749869b..2b317c0 100644 --- a/bdftruncate.c +++ b/bdftruncate.c @@ -41,8 +41,15 @@ #include <stdlib.h> #include <string.h> +#if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)) \ + || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) +# define ATTR_NORETURN __attribute((noreturn)) +#else +# define ATTR_NORETURN +#endif /* GNUC */ + static int iswide(unsigned int); -static void usage(void); +static void usage(void) ATTR_NORETURN; static int parse_threshold(const char *str, unsigned long *threshold); static int |