mirror of
https://github.com/Icinga/icinga2.git
synced 2026-07-15 03:41:10 -04:00
Disable warnings about unknown attributes in CI
Specifically this is needed to make old GCCs not whine about having to ingore `[[gnu::no_dangling]]`.
This commit is contained in:
parent
8785628b65
commit
e6f94496e7
1 changed files with 12 additions and 0 deletions
12
.github/workflows/linux.bash
vendored
12
.github/workflows/linux.bash
vendored
|
|
@ -12,6 +12,18 @@ 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"
|
||||
|
||||
# -Wattributes needs to be disabled to not get warnings in old compilers about not-yet
|
||||
# understood attributes, like [[gnu::no_dangling]] on many of the "stable" distros.
|
||||
case "$DISTRO" in
|
||||
amazonlinux:2023 |\
|
||||
debian:1[12] |\
|
||||
*suse*:15.* |\
|
||||
rockylinux:[89] |\
|
||||
ubuntu:22.04)
|
||||
WARN_FLAGS="${WARN_FLAGS} -Wno-attributes"
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$DISTRO" in
|
||||
alpine:*)
|
||||
# Packages inspired by the Alpine package, just
|
||||
|
|
|
|||
Loading…
Reference in a new issue