mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
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:
parent
c5de0e6260
commit
6cfb18b5d7
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue