]> git.sesse.net Git - vlc/commitdiff
Visual: add an assert in an impossible switch case
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 10 Feb 2014 12:57:19 +0000 (13:57 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 10 Feb 2014 13:00:35 +0000 (14:00 +0100)
modules/visualization/visual/window.c

index f30ffc8576807d9482d883c606ad1a941a1f0d0b..e08794d34780926e2ebada679f4a0fa76e5b41bd 100644 (file)
@@ -29,6 +29,8 @@
 #include "window.h"
 #include "window_presets.h"
 
+#include <assert.h>
+
 /* Flat top window coefficients */
 #define FT_A0 1.000f
 #define FT_A1 1.930f
@@ -182,6 +184,7 @@ bool window_init( int i_buffer_size, window_param * p_param,
     }
     default:
         /* We should not reach here */
+        assert(0);
         break;
     }