From da1e9d284fee32507501f6456c986b91f9af3866 Mon Sep 17 00:00:00 2001 From: Rylie Pavlik Date: Mon, 13 May 2024 15:23:19 -0500 Subject: [PATCH] cmake: Disable noisy warnings. Wish I could just do this only for braces in initialization, but the tools available are too coarse-grained. --- CompilerFlags.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CompilerFlags.cmake b/CompilerFlags.cmake index 7b86bd29e..113f88bc8 100644 --- a/CompilerFlags.cmake +++ b/CompilerFlags.cmake @@ -11,7 +11,9 @@ add_library(xrt-optimized-math INTERFACE) if(MSVC) target_compile_options(xrt-optimized-math INTERFACE $,/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" )