diff options
author | Jim Meyering <meyering@redhat.com> | 2009-09-30 09:22:08 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-09-30 09:22:08 +0200 |
commit | ce2ff5d75bec680fab093d31559214011fb1f689 (patch) | |
tree | 3ee6be545424d56336660bb4ac77ef5c5adb8ddf /src | |
parent | fc05167175be6a07719467d9e7545bd3b68ef3a0 (diff) | |
download | idutils-ce2ff5d75bec680fab093d31559214011fb1f689.tar.gz idutils-ce2ff5d75bec680fab093d31559214011fb1f689.tar.bz2 idutils-ce2ff5d75bec680fab093d31559214011fb1f689.zip |
build: avoid warning exposed by gcc-4.4.1
* src/fid.c (help_me): Declare with noreturn attribute.
* src/fnid.c (help_me): Likewise.
* src/lid.c (help_me): Likewise.
* src/mkid.c (help_me): Likewise.
* src/xtokid.c (help_me): Likewise.
Diffstat (limited to 'src')
-rw-r--r-- | src/fid.c | 2 | ||||
-rw-r--r-- | src/fnid.c | 2 | ||||
-rw-r--r-- | src/lid.c | 3 | ||||
-rw-r--r-- | src/mkid.c | 3 | ||||
-rw-r--r-- | src/xtokid.c | 2 |
5 files changed, 5 insertions, 7 deletions
@@ -74,7 +74,7 @@ usage (void) exit (1); } -static void +static void __attribute__((__noreturn__)) help_me (void) { printf (_("\ @@ -62,7 +62,7 @@ static struct option const long_options[] = {NULL, 0, NULL, 0} }; -static void +static void __attribute__((__noreturn__)) help_me (void) { printf (_("\ @@ -94,7 +94,6 @@ enum radix }; void usage (void) __attribute__((__noreturn__)); -static void help_me (void); static void lower_caseify (char *str); static enum key_style parse_key_style (char const *arg); static enum result_style parse_result_style (char const *arg); @@ -244,7 +243,7 @@ usage (void) exit (1); } -static void +static void __attribute__((__noreturn__)) help_me (void) { printf (_("\ @@ -63,7 +63,6 @@ struct summary }; void usage (void); -static void help_me (void); static int ceil_log_8 (unsigned long n); static int ceil_log_2 (unsigned long n); static void assert_writeable (char const *file_name); @@ -157,7 +156,7 @@ static struct option const long_options[] = {NULL, 0, NULL, 0} }; -static void +static void __attribute__((__noreturn__)) help_me (void) { printf (_("\ diff --git a/src/xtokid.c b/src/xtokid.c index 8b2850b..8c0b906 100644 --- a/src/xtokid.c +++ b/src/xtokid.c @@ -77,7 +77,7 @@ static struct option const long_options[] = {NULL, 0, NULL, 0} }; -static void +static void __attribute__((__noreturn__)) help_me (void) { printf (_("\ |