mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
Re-enable implicit fallthrough warnings
This commit is contained in:
parent
3553fa0a74
commit
2689238058
|
@ -12,11 +12,6 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
||||||
if (CMAKE_COMPILER_IS_GNUCC)
|
|
||||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0)
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wimplicit-fallthrough=0")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
list(INSERT CMAKE_MODULE_PATH 0
|
list(INSERT CMAKE_MODULE_PATH 0
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/CMake
|
${CMAKE_CURRENT_SOURCE_DIR}/CMake
|
||||||
|
|
Loading…
Reference in a new issue