move attribute noreturn
This commit is contained in:
parent
a3e8081c62
commit
b4793e0fef
|
@ -190,18 +190,16 @@ xerror(Display * edpy, XErrorEvent * ee)
|
||||||
return xerrorxlib(edpy, ee); /* may call exit */
|
return xerrorxlib(edpy, ee); /* may call exit */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Print help and exit(2) with given exit_code.
|
/** Print help and exit(2) with given exit_code.
|
||||||
*/
|
*/
|
||||||
static void
|
static void __attribute__ ((noreturn))
|
||||||
exit_help(int exit_code) __attribute__ ((noreturn))
|
exit_help(int exit_code)
|
||||||
{
|
{
|
||||||
FILE *outfile = (exit_code == EXIT_SUCCESS)?stdout:stderr;
|
FILE *outfile = (exit_code == EXIT_SUCCESS)?stdout:stderr;
|
||||||
fprintf(outfile, "Usage: awesome [-v | -h | -c configfile]\n");
|
fprintf(outfile, "Usage: awesome [-v | -h | -c configfile]\n");
|
||||||
exit(exit_code);
|
exit(exit_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Hello, this is main
|
/** Hello, this is main
|
||||||
* \param argc who knows
|
* \param argc who knows
|
||||||
* \param argv who knows
|
* \param argv who knows
|
||||||
|
|
Loading…
Reference in New Issue