Fix warnings in the tests in release

The maybe-uninitialized warning triggers while we know from what
we are testing that it is meant to be initialized
This commit is contained in:
Olivier Goffart 2021-11-17 14:29:11 +01:00 committed by Olivier Goffart
parent c5de0e6260
commit 6cfb18b5d7

View file

@ -273,6 +273,10 @@ if(BUILD_TESTING)
else() else()
target_compile_options(test_${NAME} PRIVATE -Wall -Wextra -Werror) target_compile_options(test_${NAME} PRIVATE -Wall -Wextra -Werror)
endif() endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
# that warning has false positives
target_compile_options(test_${NAME} PRIVATE -Wno-maybe-uninitialized)
endif()
endmacro(sixtyfps_test) endmacro(sixtyfps_test)
sixtyfps_test(datastructures) sixtyfps_test(datastructures)