From 162062cbfbf578a4cc0a1fb5bd0d2223f7ebe063 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Sat, 2 Jul 2011 14:01:32 +1000 Subject: [PATCH] Rearrange the __attribute__ compiler directive The __attribute__ compiler directive should be placed AFTER a function prototype, as per the GNU C Compiler manual. --- src/trader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/trader.c b/src/trader.c index df9a47e..164941f 100644 --- a/src/trader.c +++ b/src/trader.c @@ -40,8 +40,8 @@ int main (int argc, char *argv[]); static void process_cmdline (int argc, char *argv[]); -static void __attribute__((noreturn)) show_version (void); -static void __attribute__((noreturn)) show_usage (int status); +static void show_version (void) __attribute__((noreturn)); +static void show_usage (int status) __attribute__((noreturn)); /************************************************************************ @@ -218,7 +218,7 @@ static void process_cmdline (int argc, char *argv[]) terminates. */ -static void __attribute__((noreturn)) show_version (void) +static void show_version (void) { printf("\ " PACKAGE_NAME " (%s) %s\n\ @@ -247,7 +247,7 @@ NO WARRANTY, to the extent permitted by law; see the License for details.\n\ error, then terminates. */ -static void __attribute__((noreturn)) show_usage (int status) +static void show_usage (int status) { const char *pn = program_name();