mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-26 09:26:17 +00:00
cmake: Disable noisy warnings.
Wish I could just do this only for braces in initialization, but the tools available are too coarse-grained.
This commit is contained in:
parent
3d0b984faf
commit
da1e9d284f
|
@ -11,7 +11,9 @@ add_library(xrt-optimized-math INTERFACE)
|
|||
if(MSVC)
|
||||
target_compile_options(xrt-optimized-math INTERFACE $<IF:$<CONFIG:Debug>,/O2 /Ob2,/O2 /Ob3>)
|
||||
else()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic -Wall -Wextra -Wno-unused-parameter")
|
||||
set(CMAKE_C_FLAGS
|
||||
"${CMAKE_C_FLAGS} -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-missing-braces"
|
||||
)
|
||||
set(CMAKE_C_FLAGS
|
||||
"${CMAKE_C_FLAGS} -Werror-implicit-function-declaration -Werror=incompatible-pointer-types"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue