mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
cmake: Check -Wno-*
compiler options for leveldb
target
Check for -Wfoo rather than -Wno-foo because the latter may not cause the test to fail.
This commit is contained in:
parent
2638fdb4f9
commit
9e4a4b4832
1 changed files with 5 additions and 3 deletions
|
@ -88,9 +88,11 @@ if(MSVC)
|
|||
_CRT_NONSTDC_NO_WARNINGS
|
||||
)
|
||||
else()
|
||||
target_compile_options(nowarn_leveldb_interface INTERFACE
|
||||
-Wno-conditional-uninitialized
|
||||
-Wno-suggest-override
|
||||
try_append_cxx_flags("-Wconditional-uninitialized" TARGET nowarn_leveldb_interface SKIP_LINK
|
||||
IF_CHECK_PASSED "-Wno-conditional-uninitialized"
|
||||
)
|
||||
try_append_cxx_flags("-Wsuggest-override" TARGET nowarn_leveldb_interface SKIP_LINK
|
||||
IF_CHECK_PASSED "-Wno-suggest-override"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue