[vlc-commits] winvlc: silence unused warnings

Alexandre Janniaux git at videolan.org
Mon Mar 30 09:46:09 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Mar 27 12:04:33 2020 +0100| [81c60915f764b638bb3b18a08abe9b955ab9df01] | committer: Alexandre Janniaux

winvlc: silence unused warnings

If breakpad is not used, the crash_handling variable is not used too,
but as it's used otherwise this should be silenced.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81c60915f764b638bb3b18a08abe9b955ab9df01
---

 bin/winvlc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/winvlc.c b/bin/winvlc.c
index 10fea9d0f2..81fed36205 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -218,6 +218,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
         CheckCrashDump( &path[0] );
         eh = InstallCrashHandler( &path[0] );
     }
+#else
+    (void)crash_handling;
 #endif
 
     _setmode( _fileno( stdin ), _O_BINARY ); /* Needed for pipes */



More information about the vlc-commits mailing list