Skip to content

Commit 3b2acfc

Browse files
committed
build: suppress external warnings by default
1 parent 7a59865 commit 3b2acfc

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

ci/test/06_script_b.sh

+1-1
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

+3-3
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

+2-4
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)