mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
ci: enable -Werror=dev
Turn developer & deprecation warnings into errors.
This commit is contained in:
1
.github/ci-test-each-commit-exec.py
vendored
1
.github/ci-test-each-commit-exec.py
vendored
@@ -27,6 +27,7 @@ def main():
|
|||||||
"cmake",
|
"cmake",
|
||||||
"-B",
|
"-B",
|
||||||
"build",
|
"build",
|
||||||
|
"-Werror=dev",
|
||||||
"-DCMAKE_C_COMPILER=clang",
|
"-DCMAKE_C_COMPILER=clang",
|
||||||
"-DCMAKE_CXX_COMPILER=clang++",
|
"-DCMAKE_CXX_COMPILER=clang++",
|
||||||
"-DWERROR=ON",
|
"-DWERROR=ON",
|
||||||
|
|||||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -223,7 +223,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate build system
|
- name: Generate build system
|
||||||
run: |
|
run: |
|
||||||
cmake -B build --preset vs2022 -DCMAKE_TOOLCHAIN_FILE="${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ${{ matrix.generate-options }}
|
cmake -B build -Werror=dev --preset vs2022 -DCMAKE_TOOLCHAIN_FILE="${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ${{ matrix.generate-options }}
|
||||||
|
|
||||||
- name: Save vcpkg binary cache
|
- name: Save vcpkg binary cache
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ BASE_BUILD_DIR=${BASE_BUILD_DIR:-$BASE_SCRATCH_DIR/build-$HOST}
|
|||||||
mkdir -p "${BASE_BUILD_DIR}"
|
mkdir -p "${BASE_BUILD_DIR}"
|
||||||
cd "${BASE_BUILD_DIR}"
|
cd "${BASE_BUILD_DIR}"
|
||||||
|
|
||||||
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_INSTALL_PREFIX=$BASE_OUTDIR"
|
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_INSTALL_PREFIX=$BASE_OUTDIR -Werror=dev"
|
||||||
|
|
||||||
if [[ "${RUN_TIDY}" == "true" ]]; then
|
if [[ "${RUN_TIDY}" == "true" ]]; then
|
||||||
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
|
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
|
||||||
|
|||||||
Reference in New Issue
Block a user