Commit 130a8081 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Visual: add an assert in an impossible switch case

parent ec28ebfa
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "window.h" #include "window.h"
#include "window_presets.h" #include "window_presets.h"
#include <assert.h>
/* Flat top window coefficients */ /* Flat top window coefficients */
#define FT_A0 1.000f #define FT_A0 1.000f
#define FT_A1 1.930f #define FT_A1 1.930f
...@@ -182,6 +184,7 @@ bool window_init( int i_buffer_size, window_param * p_param, ...@@ -182,6 +184,7 @@ bool window_init( int i_buffer_size, window_param * p_param,
} }
default: default:
/* We should not reach here */ /* We should not reach here */
assert(0);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment