From fbd719f93ab659fec6c42952e76f5e5b971728be Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 18 Feb 2025 23:07:10 +0100 Subject: Add -std=c++11 to CI build pipeline Ensure that we don't accidentally add newer features by building with -std=c++11 only on the CI build. --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37221fb1..4c9e4522 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -130,7 +130,9 @@ jobs: - name: autogen run: ./autogen.sh - name: configure - run: ./configure --disable-mbedtls CFLAGS="-Werror" CXXFLAGS="-Werror" + # Make sure we build with the C++11 standard, so we fail to build on newer + # features. + run: ./configure --disable-mbedtls CFLAGS="-Werror" CXXFLAGS="-Werror -std=c++11" - name: make run: make - name: make check -- cgit v1.2.3