xf86Priv.h: Add some noreturn attributes suggested by gcc
Both functions call exit() at the end and have no other return path.
Also correct comment/heading to reflect commit 6450f6ca7e
moving
DoShowOptions into xf86Configure.c.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3823eedf3c
commit
f68df9dfd2
|
@ -125,10 +125,8 @@ extern _X_EXPORT const DisplayModeRec xf86DefaultModes[];
|
|||
extern _X_EXPORT const int xf86NumDefaultModes;
|
||||
|
||||
/* xf86Configure.c */
|
||||
extern _X_EXPORT void DoConfigure(void);
|
||||
|
||||
/* xf86ShowOpts.c */
|
||||
extern _X_EXPORT void DoShowOptions(void);
|
||||
extern _X_EXPORT void DoConfigure(void) _X_NORETURN;
|
||||
extern _X_EXPORT void DoShowOptions(void) _X_NORETURN;
|
||||
|
||||
/* xf86Events.c */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user