1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-07-07 15:54:14 -04:00

Rearrange the __attribute__ compiler directive

The __attribute__ compiler directive should be placed AFTER a function
prototype, as per the GNU C Compiler manual.
This commit is contained in:
John Zaitseff 2011-07-02 14:01:32 +10:00
parent d5951adb4f
commit 162062cbfb

View File

@ -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();