Skip to content

Commit 9372ec7

Browse files
committed
Merge bitcoin/bitcoin#27872: build: suppress external warnings by default
3b2acfc build: suppress external warnings by default (fanquake) Pull request description: I think we are at the point where it make more sense to make this the default, than not. It's already used in the CI, and I assume most building locally are also utilising it. ACKs for top commit: achow101: ACK 3b2acfc hebasto: ACK 3b2acfc stickies-v: ACK 3b2acfc Tree-SHA512: be20203381c03dea8b5d64876c56bf8bb8defdfd6fc6d5398b71d3f28d0209c4bd1374f108df708aaa8867fda818a9bc611d1908c9fbb74f8cccdfbc5aff05af
2 parents 7a59865 + 3b2acfc commit 9372ec7

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

ci/test/06_script_b.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if [ "$DOWNLOAD_PREVIOUS_RELEASES" = "true" ]; then
6767
test/get_previous_releases.py -b -t "$PREVIOUS_RELEASES_DIR"
6868
fi
6969

70-
BITCOIN_CONFIG_ALL="--enable-suppress-external-warnings --disable-dependency-tracking"
70+
BITCOIN_CONFIG_ALL="--disable-dependency-tracking"
7171
if [ -z "$NO_DEPENDS" ]; then
7272
BITCOIN_CONFIG_ALL="${BITCOIN_CONFIG_ALL} CONFIG_SITE=$DEPENDS_DIR/$HOST/share/config.site"
7373
fi

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ dnl May be useful if warnings from external headers clutter the build output
244244
dnl too much, so that it becomes difficult to spot Bitcoin Core warnings
245245
dnl or if they cause a build failure with --enable-werror.
246246
AC_ARG_ENABLE([suppress-external-warnings],
247-
[AS_HELP_STRING([--enable-suppress-external-warnings],
248-
[Suppress warnings from external headers (default is no)])],
247+
[AS_HELP_STRING([--disable-suppress-external-warnings],
248+
[Do not suppress warnings from external headers (default is to suppress)])],
249249
[suppress_external_warnings=$enableval],
250-
[suppress_external_warnings=no])
250+
[suppress_external_warnings=yes])
251251

252252
AC_ARG_ENABLE([lcov],
253253
[AS_HELP_STRING([--enable-lcov],

doc/developer-notes.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,11 @@ apt install clang-tidy bear clang
217217
Then, pass clang as compiler to configure, and use bear to produce the `compile_commands.json`:
218218

219219
```sh
220-
./autogen.sh && ./configure CC=clang CXX=clang++ --enable-suppress-external-warnings
220+
./autogen.sh && ./configure CC=clang CXX=clang++
221221
make clean && bear --config src/.bear-tidy-config -- make -j $(nproc)
222222
```
223223

224-
The output is denoised of errors from external dependencies and includes with
225-
`--enable-suppress-external-warnings` and `--config src/.bear-tidy-config`. Both
226-
options may be omitted to view the full list of errors.
224+
The output is denoised of errors from external dependencies.
227225

228226
To run clang-tidy on all source files:
229227

0 commit comments

Comments
 (0)