From c47ff7b3c6f22710e1478d789bd9399b6026690a Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Thu, 28 Jan 2016 21:37:41 -0500 Subject: [PATCH] let make the main() entry point noreturns --- src/sdl/i_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sdl/i_main.c b/src/sdl/i_main.c index 489ee4c0..d3f94f13 100644 --- a/src/sdl/i_main.c +++ b/src/sdl/i_main.c @@ -141,8 +141,10 @@ void XBoxStartup() myargv = NULL; #else #ifdef FORCESDLMAIN +FUNCNORETURN int SDL_main(int argc, char **argv) #else +FUNCNORETURN int main(int argc, char **argv) #endif { @@ -240,8 +242,8 @@ int main(int argc, char **argv) #endif // return to OS -//#ifndef __GNUC__ +#ifndef __GNUC__ return 0; -//#endif +#endif } #endif