mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Workaround GCC 12 warning
This commit is contained in:
parent
7130676697
commit
b8fdc9bf5d
@ -57,6 +57,11 @@ function(spdlog_prepare_test test_target spdlog_lib)
|
|||||||
endif()
|
endif()
|
||||||
add_test(NAME ${test_target} COMMAND ${test_target})
|
add_test(NAME ${test_target} COMMAND ${test_target})
|
||||||
set_tests_properties(${test_target} PROPERTIES RUN_SERIAL ON)
|
set_tests_properties(${test_target} PROPERTIES RUN_SERIAL ON)
|
||||||
|
|
||||||
|
# Workaround GCC 12 false positive
|
||||||
|
if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND "${CMAKE_CXX_COMPILER_VERSION}" MATCHES "^12\..*")
|
||||||
|
target_compile_options(${test_target} PRIVATE "-Wno-maybe-uninitialized")
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# The compiled library tests
|
# The compiled library tests
|
||||||
|
Loading…
Reference in New Issue
Block a user