From 5e4abd5e06e30cc3a4b303267d4925def7483114 Mon Sep 17 00:00:00 2001 From: Joerg Hofrichter Date: Mon, 18 Mar 2024 10:39:35 +0100 Subject: ci: UHD make: tolerate warning deprecated-declarations This allows building with the following warning on Ubuntu 24.04: warning: 'std::string boost::filesystem::extension(const path&)' is deprecated: Use path::extension() instead [-Wdeprecated-declarations] --- .ci/templates/steps-build-uhd-make.yml | 2 +- .ci/templates/steps-build-uhd-ninja.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/templates/steps-build-uhd-make.yml b/.ci/templates/steps-build-uhd-make.yml index b88581c54..04d910cfd 100644 --- a/.ci/templates/steps-build-uhd-make.yml +++ b/.ci/templates/steps-build-uhd-make.yml @@ -60,7 +60,7 @@ steps: fi if [[ "${{ parameters.uhdAllowWarnings }}" = "False" ]]; then echo "Warnings not allowed for this build." - export CXXFLAGS="-Werror -Wno-error=maybe-uninitialized $CXXFLAGS" + export CXXFLAGS="-Werror -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations $CXXFLAGS" fi export CXXFLAGS="${{ parameters.uhdCxxFlags }} $CXXFLAGS" if [[ "${{ parameters.uhdCustomBoostPackage }}" = "True" ]]; then diff --git a/.ci/templates/steps-build-uhd-ninja.yml b/.ci/templates/steps-build-uhd-ninja.yml index 48b0a424d..904942212 100644 --- a/.ci/templates/steps-build-uhd-ninja.yml +++ b/.ci/templates/steps-build-uhd-ninja.yml @@ -16,7 +16,7 @@ steps: cd ${{ parameters.uhdBuildDir }} if [[ "${{ parameters.uhdAllowWarnings }}" = "False" ]]; then echo "Warnings not allowed for this build." - export CXXFLAGS="-Werror -Wno-error=maybe-uninitialized $CXXFLAGS" + export CXXFLAGS="-Werror -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations $CXXFLAGS" fi export CXXFLAGS="${{ parameters.uhdCxxFlags }} $CXXFLAGS" cmake -G Ninja ${{ parameters.uhdSrcDir }}/host -- cgit v1.2.3-59-g8ed1b