mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
Fix unused variables in release builds
This commit is contained in:
parent
b08aa9fd35
commit
73a908665d
@ -15,6 +15,10 @@ if (CMAKE_COMPILER_IS_GNUCC)
|
|||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wimplicit-fallthrough=0")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wimplicit-fallthrough=0")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
if (CMAKE_BUILD_TYPE MATCHES Release)
|
||||||
|
# Some variables are only used for assertions
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-variable")
|
||||||
|
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 New Issue
Block a user