-
Notifications
You must be signed in to change notification settings - Fork 6
cmake: Silent leveldb
-specific warnings
#99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Friendly ping @fanquake @TheCharlatan @m3dwards @pablomartin4btc @vasild :) @theuni Your https://github.com/hebasto/bitcoin/pull/6/files#r1113411466 has been addressed. |
fb29a79
to
4c404fa
Compare
Concept ACK. I think "nowarn_leveldb_interface" would make this more intuitive though. |
This change introduces a new `warn_leveldb_interface`, which overrides `-Wconditional-uninitialized` and `-Wsuggest-override` if any. For MSVC builds, dropped warning suppressions that are provided at the global level.
4c404fa
to
33dee19
Compare
Thanks! Renamed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 33dee19
/wd4244 | ||
/wd4267 | ||
$<$<CONFIG:Release>:/wd4722> | ||
target_compile_options(nowarn_leveldb_interface INTERFACE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these no longer private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only INTERFACE_*
properties might be populated for interface libraries.
The nowarn_leveldb_interface
library itself is linked in the PRIVATE
scope though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, CMake raises an error:
CMake Error at cmake/leveldb.cmake:86 (target_compile_options):
target_compile_options may only set INTERFACE properties on INTERFACE
targets
Call Stack (most recent call first):
CMakeLists.txt:260 (include)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 33dee19
This PR split from #84
It introduces a new
warn_leveldb_interface
, which overrides-Wconditional-uninitialized
and-Wsuggest-override
if any.For MSVC builds, dropped warning suppressions that are provided at the global level.
For example, on the staging branch: