mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Merge bitcoin/bitcoin#31366: cmake: Check -Wno-*
compiler options for leveldb
target
9e4a4b4832
cmake: Check `-Wno-*` compiler options for `leveldb` target (Hennadii Stepanov) Pull request description: Otherwise, https://cirrus-ci.com/task/4830737755537408: ``` At global scope: cc1plus: note: unrecognized command-line option ‘-Wno-conditional-uninitialized’ may have been intended to silence earlier diagnostics ``` ACKs for top commit: TheCharlatan: ACK9e4a4b4832
Tree-SHA512: 05553c80399180e01d45c3f02074ca0ce620011b29b03bef5433b87c9d88fd281fb6bf0203fc6fff590f3780c182a3fab8307002536b6350e03748420c346602
This commit is contained in:
commit
82ba925715
1 changed files with 5 additions and 3 deletions
|
@ -87,9 +87,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…
Add table
Reference in a new issue