Skip to content

Commit 8f766f3

Browse files
committed
ci: enable -Werror=dev
Turn developer & deprecation warnings into errors.
1 parent 7b420ca commit 8f766f3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/ci-test-each-commit-exec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def main():
2727
"cmake",
2828
"-B",
2929
"build",
30+
"-Werror=dev",
3031
"-DCMAKE_C_COMPILER=clang",
3132
"-DCMAKE_CXX_COMPILER=clang++",
3233
"-DWERROR=ON",

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223

224224
- name: Generate build system
225225
run: |
226-
cmake -B build --preset vs2022 -DCMAKE_TOOLCHAIN_FILE="${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ${{ matrix.generate-options }}
226+
cmake -B build -Werror=dev --preset vs2022 -DCMAKE_TOOLCHAIN_FILE="${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ${{ matrix.generate-options }}
227227
228228
- name: Save vcpkg binary cache
229229
uses: actions/cache/save@v4

ci/test/03_test_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ BASE_BUILD_DIR=${BASE_BUILD_DIR:-$BASE_SCRATCH_DIR/build-$HOST}
118118
mkdir -p "${BASE_BUILD_DIR}"
119119
cd "${BASE_BUILD_DIR}"
120120

121-
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_INSTALL_PREFIX=$BASE_OUTDIR"
121+
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_INSTALL_PREFIX=$BASE_OUTDIR -Werror=dev"
122122

123123
if [[ "${RUN_TIDY}" == "true" ]]; then
124124
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"

0 commit comments

Comments
 (0)