Skip to content

Commit cedd6b6

Browse files
committed
[C] Suppress maybe-uninitialized warnings in tests.
1 parent ea35e4e commit cedd6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbe-tool/src/test/c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function(sbe_test name)
2222
)
2323
target_compile_options("C${name}" PRIVATE $<$<CXX_COMPILER_ID:AppleClang>:-Werror>)
2424
target_compile_options("C${name}" PRIVATE $<$<CXX_COMPILER_ID:Clang>:-Werror>)
25-
target_compile_options("C${name}" PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Werror>)
25+
target_compile_options("C${name}" PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Werror -Wno-maybe-uninitialized>)
2626
target_link_libraries("C${name}" ${GTEST_LIBS} ${CMAKE_THREAD_LIBS_INIT})
2727
add_test(NAME C${name} COMMAND C${name} WORKING_DIRECTORY ${C_CODEC_TARGET_DIR})
2828
add_dependencies(C${name} gtest)

0 commit comments

Comments
 (0)