summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-13 15:48:49 +0100
committerSam James <sam@gentoo.org>2022-10-13 15:49:25 +0100
commit930fe2268cbedda61e37fada65e57352d25d8761 (patch)
treede2f5c7e4adc14ec9b625ae55a3928a630408c3b /sys-devel
parentsys-devel/clang-common: drop -Werror=strict-prototypes for 15.x (diff)
downloadgentoo-930fe2268cbedda61e37fada65e57352d25d8761.tar.gz
gentoo-930fe2268cbedda61e37fada65e57352d25d8761.tar.bz2
gentoo-930fe2268cbedda61e37fada65e57352d25d8761.zip
sys-devel/clang-common: drop -Werror=strict-prototypes,deprecated-non-prototype for 16.x
We don't need either of these for Clang 16 as it's already strict enough and as noted in 6213a0be95909859a98c6ae60febb35de2e8f2fd, it affects e.g. -std=c89 too. Closes: https://bugs.gentoo.org/876985 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/clang-common/clang-common-16.0.0.9999.ebuild4
-rw-r--r--sys-devel/clang-common/clang-common-16.0.0_pre20221010-r1.ebuild4
2 files changed, 0 insertions, 8 deletions
diff --git a/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild b/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild
index 841ceedb1077..3e43f51a0aab 100644
--- a/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild
+++ b/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild
@@ -97,10 +97,6 @@ src_install() {
-Werror=implicit-function-declaration
-Werror=implicit-int
-Werror=incompatible-function-pointer-types
-
- # constructs banned by C2x
- -Werror=strict-prototypes
- -Werror=deprecated-non-prototype
EOF
cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die
diff --git a/sys-devel/clang-common/clang-common-16.0.0_pre20221010-r1.ebuild b/sys-devel/clang-common/clang-common-16.0.0_pre20221010-r1.ebuild
index 841ceedb1077..3e43f51a0aab 100644
--- a/sys-devel/clang-common/clang-common-16.0.0_pre20221010-r1.ebuild
+++ b/sys-devel/clang-common/clang-common-16.0.0_pre20221010-r1.ebuild
@@ -97,10 +97,6 @@ src_install() {
-Werror=implicit-function-declaration
-Werror=implicit-int
-Werror=incompatible-function-pointer-types
-
- # constructs banned by C2x
- -Werror=strict-prototypes
- -Werror=deprecated-non-prototype
EOF
cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die