diff options
author | Simon McVittie <smcv@debian.org> | 2020-03-10 11:31:43 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2020-03-10 11:31:43 +0000 |
commit | fc8b269e33ba179a55a79bf50cec62286ac50bc6 (patch) | |
tree | 91fc57e8f0f70bf30c318e260c49f853903ba2f9 /tests | |
parent | f0e571a0e04d87874fb7c7884389486794f902d5 (diff) | |
download | cogl-fc8b269e33ba179a55a79bf50cec62286ac50bc6.tar.gz |
tests: Reassure compiler that uninitialized variables are not reached
gcc 9 detects that if we exit this switch due to an unsupported
cull mode, the variables that it sets will remain uninitialized,
causing compilation with -Werror=uninitialized to fail.
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conform/test-backface-culling.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/conform/test-backface-culling.c b/tests/conform/test-backface-culling.c index e90c2f5e..c06ec79a 100644 --- a/tests/conform/test-backface-culling.c +++ b/tests/conform/test-backface-culling.c @@ -193,6 +193,9 @@ validate_result (CoglFramebuffer *framebuffer, int y_offset) cull_front = TRUE; cull_back = TRUE; break; + + default: + g_assert_not_reached (); } if (FRONT_WINDING (draw_num) == COGL_WINDING_CLOCKWISE) |