From 19b232545c45c79ff54d19ff0bb1a3876f9c55ab Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 10 Mar 2023 13:41:31 +0100 Subject: [PATCH] gha: turn most warnings into errors in github build --- .github/workflows/ci-scripts-build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci-scripts-build.yml b/.github/workflows/ci-scripts-build.yml index 5a66f1d7b..e8dd9c85b 100644 --- a/.github/workflows/ci-scripts-build.yml +++ b/.github/workflows/ci-scripts-build.yml @@ -51,6 +51,25 @@ jobs: matrix: # Job names also name artifacts, character limitations apply include: + - os: ubuntu-22.04 + cmp: gcc-12 + name: "Ub-22 gcc-12 c++20 Werror" + # Turn all warnings into errors, + # except for those we could not fix (yet). + # Remove respective -Wno-error=... flag once it is fixed. + extra: "CMD_CXXFLAGS=-std=c++20 + CMD_CPPFLAGS='-fdiagnostics-color + -Werror + -Wno-error=deprecated-declarations + -Wno-error=stringop-truncation + -Wno-error=restrict + -Wno-error=sizeof-pointer-memaccess + -Wno-error=nonnull + -Wno-error=dangling-pointer + -Wno-error=format-overflow + -Wno-error=format-security + -Wno-error=stringop-overread'" + - os: ubuntu-20.04 cmp: gcc configuration: default