summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2020-05-02 11:47:28 +0200
committerSander Vrijders <sander@ouroboros.rocks>2020-05-02 11:50:33 +0200
commitae995c0f88e56680f5b8e18aa51ed6bee8776c6b (patch)
tree863f9c4189c16216f2a5e5eb8b75ee547366c51f
parent4ba228a8b373f64de541baab1f11449448cb7be2 (diff)
downloadouroboros-ae995c0f88e56680f5b8e18aa51ed6bee8776c6b.tar.gz
ouroboros-ae995c0f88e56680f5b8e18aa51ed6bee8776c6b.zip
build: Set implicit fallthrough warning level 4
GCC 9.3.0 started complaining despite the /* FALLTHRU */ comments. Apparently this changed level. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc728a21..5d09ed1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,7 +64,7 @@ test_and_set_c_compiler_flag_global(-Wall)
# explicitly add other flags in -Wextra
test_and_set_c_compiler_flag_global(-Wempty-body)
test_and_set_c_compiler_flag_global(-Wignored-qualifiers)
-test_and_set_c_compiler_flag_global(-Wimplicit-fallthrough)
+test_and_set_c_compiler_flag_global(-Wimplicit-fallthrough=4)
test_and_set_c_compiler_flag_global(-Wmissing-field-initializers)
test_and_set_c_compiler_flag_global(-Wmissing-parameter-type)
test_and_set_c_compiler_flag_global(-Wold-style-declaration)