mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-13 03:09:37 +01: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
|
_CRT_NONSTDC_NO_WARNINGS
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_compile_options(nowarn_leveldb_interface INTERFACE
|
try_append_cxx_flags("-Wconditional-uninitialized" TARGET nowarn_leveldb_interface SKIP_LINK
|
||||||
-Wno-conditional-uninitialized
|
IF_CHECK_PASSED "-Wno-conditional-uninitialized"
|
||||||
-Wno-suggest-override
|
)
|
||||||
|
try_append_cxx_flags("-Wsuggest-override" TARGET nowarn_leveldb_interface SKIP_LINK
|
||||||
|
IF_CHECK_PASSED "-Wno-suggest-override"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue