aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2021-07-13 00:02:39 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2021-07-13 15:45:48 +0100
commit949292dd5fe078ec2543b698a5f25f4e89dfa4d5 (patch)
tree2d5a744d691b4ec4b4e96a0b8bfaba54543480cb
parentedaccebf2dbff83193c2f95985a5b1ea90ccdfe1 (diff)
downloadwaffle-949292dd5fe078ec2543b698a5f25f4e89dfa4d5.tar.gz
tests/gl_basic_test: silence implicit-fallthrough warn
The skip() function from cmocka is missing the noreturn notation. Thus the compiler assumes that it can return and results in implicit-fallthrough warnings. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--tests/functional/gl_basic_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index 508dcf7..0491fc3 100644
--- a/tests/functional/gl_basic_test.c
+++ b/tests/functional/gl_basic_test.c
@@ -402,6 +402,9 @@ gl_basic_draw__(void **state, struct gl_basic_draw_args__ args)
// Assume that the native platform rejected the requested
// config flavor.
skip();
+ // XXX: skip() is not annotated as noreturn, leading to compiler
+ // warning about implicit fallthrough
+ break;
default:
assert_true_with_wfl_error(ts->config);
}
@@ -422,6 +425,9 @@ gl_basic_draw__(void **state, struct gl_basic_draw_args__ args)
// Assume that the native platform rejected the requested
// context flavor.
skip();
+ // XXX: skip() is not annotated as noreturn, leading to compiler
+ // warning about implicit fallthrough
+ break;
default:
assert_true_with_wfl_error(ts->ctx);
}