We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ff9593 commit b43a3dbCopy full SHA for b43a3db
CMakeLists.txt
@@ -221,6 +221,11 @@ else()
221
add_definitions(-Wall -Wextra -pedantic -Wno-unused-parameter
222
-Wstrict-prototypes -std=gnu99)
223
224
+ check_c_compiler_flag(-Wimplicit-fallthrough HAS_WIMPLICIT_FALLTHROUGH_FLAG)
225
+ if(HAS_WIMPLICIT_FALLTHROUGH_FLAG)
226
+ add_definitions(-Wimplicit-fallthrough)
227
+ endif()
228
+
229
# On FreeBSD 64 math.h uses unguarded C11 extension, which taints clang
230
# 3.4.1 used there.
231
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
0 commit comments