-
Notifications
You must be signed in to change notification settings - Fork 37.7k
build: Disable warnings for leveldb subtree by default #16722
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
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.
Concept ACK
configure.ac
Outdated
@@ -1667,6 +1681,7 @@ echo " sanitizers = $use_sanitizers" | |||
echo " debug enabled = $enable_debug" | |||
echo " gprof enabled = $enable_gprof" | |||
echo " werror = $enable_werror" | |||
echo " wleveldb = $enable_wleveldb" |
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.
I'm not sure if wleveldb
is significant enough to be part of the default configure
output.
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.
Fixed.
-0 on this. Can you give examples of what's actually being hidden? Have the changes been made upstream to "fix" the warnings, rather than just hiding them here? It seems a bit overkill that we'd add an on-by-default flag to configure to hide a couple warnings from leveldb. As linked in other PRs, @theuni's comment from a while back:
|
@fanquake Thank you for your review. IIUC, @theuni concerns about
There are much more warnings in #15822, #16387, #16710 ;) This PR is a step to implement building with
IMHO, it is not safe to update leveldb subtree just to "fix" warnings. This PR suggests a more conservative approach to removing noise from a build log. |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
8e64235
to
8ae6c43
Compare
Thank you for your review. Your comment has been addressed.
I thought about it. Configuring of |
That's fine, but again, I just don't like adding a configure argument that only covers disable warnings for leveldb. It is so small in scope it seems silly to have a configure argument. |
This commit adds "--enable-wleveldb" option to the configure script.
8ae6c43
to
d18e508
Compare
Rebased together with #16710. |
ACK d18e508 -- diff looks correct |
I think it would be better to only disable the warnings that are spammy and won't be solved upstream, with a good rationale documented in |
839add1 build: Enable -Wsuggest-override (Hennadii Stepanov) de5e91c refactor: Add BerkeleyDatabaseVersion() function (Hennadii Stepanov) Pull request description: From GCC [docs](https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Warning-Options.html): > `-Wsuggest-override` > Warn about overriding virtual functions that are not marked with the override keyword. ~This PR is based on #16722 (the first commit).~ See: #16722 (comment) ACKs for top commit: fanquake: ACK 839add1 vasild: ACK 839add1 practicalswift: ACK 839add1 assuming Travis is happy: patch looks correct Tree-SHA512: 1e8cc085da30d41536deff9b181962c1882314ab252c2ad958294087ae1e5a0dfa4886bdbe36f21cf6ae71df776a8420f349f007d4b5b49fd79ba98ce308965a
839add1 build: Enable -Wsuggest-override (Hennadii Stepanov) de5e91c refactor: Add BerkeleyDatabaseVersion() function (Hennadii Stepanov) Pull request description: From GCC [docs](https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Warning-Options.html): > `-Wsuggest-override` > Warn about overriding virtual functions that are not marked with the override keyword. ~This PR is based on bitcoin#16722 (the first commit).~ See: bitcoin#16722 (comment) ACKs for top commit: fanquake: ACK 839add1 vasild: ACK 839add1 practicalswift: ACK 839add1 assuming Travis is happy: patch looks correct Tree-SHA512: 1e8cc085da30d41536deff9b181962c1882314ab252c2ad958294087ae1e5a0dfa4886bdbe36f21cf6ae71df776a8420f349f007d4b5b49fd79ba98ce308965a
This PR adds
--enable-wleveldb
option to theconfigure
script.Here are some examples of usefulness:
Related to #14920.
Inspired by practicalswift and promag.