mirror of
https://git.zap.org.au/git/trader.git
synced 2024-12-04 14:46:45 -05: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:
parent
d5951adb4f
commit
162062cbfb
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user