From: Cloudwalk Date: Wed, 21 Jul 2021 18:59:10 +0000 (-0400) Subject: vid_null: Fix compiler warning on Windows build X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9ba01c31e0bebb3ada7724316d63a393053102d3;p=xonotic%2Fdarkplaces.git vid_null: Fix compiler warning on Windows build --- diff --git a/vid_null.c b/vid_null.c index cf2ba864..5ebb7757 100644 --- a/vid_null.c +++ b/vid_null.c @@ -29,6 +29,7 @@ void VID_Shutdown(void) { } +#ifndef WIN32 static void signal_handler(int sig) { Con_Printf("Received signal %d, exiting...\n", sig); @@ -37,7 +38,6 @@ static void signal_handler(int sig) static void InitSig(void) { -#ifndef WIN32 signal(SIGHUP, signal_handler); signal(SIGINT, signal_handler); signal(SIGQUIT, signal_handler); @@ -48,8 +48,8 @@ static void InitSig(void) signal(SIGFPE, signal_handler); signal(SIGSEGV, signal_handler); signal(SIGTERM, signal_handler); -#endif } +#endif void VID_SetMouse (qbool fullscreengrab, qbool relative, qbool hidecursor) { @@ -61,7 +61,9 @@ void VID_Finish (void) void VID_Init(void) { +#ifndef WIN32 InitSig(); // trap evil signals +#endif } qbool VID_InitMode(viddef_mode_t *mode)