Use noreturn attribute in Exit() declaration.

Use the gcc-specific noreturn attribute to advise the compiler that
Exit() doesn't return.  This is safe because we already use preprocessor
rules to hide __attribute__ from other compilers.

Suggested independently by Christophe Curis and Brad Jorsch.
This commit is contained in:
Iain Patterson
2012-04-11 23:56:31 +01:00
committed by Carlos R. Mafra
parent bca60318ca
commit b3afad67ff
+1 -1
View File
@@ -35,7 +35,7 @@ void Shutdown(WShutdownMode mode);
void RestoreDesktop(WScreen *scr);
void Exit(int status);
void Exit(int status) __attribute__((noreturn));
void Restart(char *manager, Bool abortOnFailure);