From ae86358ca3ba83c4436cdfefa5876ff93ac85afc Mon Sep 17 00:00:00 2001 From: Johannes Schmidt Date: Thu, 26 Feb 2026 10:05:50 +0100 Subject: [PATCH] Disable warnings about unknown attributes in CI Specifically this is needed to make old GCCs on Debian not whine about having to ingore `[[gnu::no_dangling]]`. --- .github/workflows/linux.bash | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/linux.bash b/.github/workflows/linux.bash index 296b6a885..9cf3d1135 100755 --- a/.github/workflows/linux.bash +++ b/.github/workflows/linux.bash @@ -12,6 +12,14 @@ SCL_ENABLE_GCC=() # we're considering moving to C++20 and/or the -ti.hpp files are generated differently. WARN_FLAGS="-Wall -Wextra -Wno-template-id-cdtor -Wno-stringop-overflow" +case "$DISTRO" in + debian:11) + # -Wattributes neededs to be disabled to not get warnings in old compilers about not-yet + # understood attributes, like [[gnu::no_dangling]] on debian:11. + WARN_FLAGS="${WARN_FLAGS} -Wno-attributes" + ;; +esac + case "$DISTRO" in alpine:*) # Packages inspired by the Alpine package, just