commit:     6213a0be95909859a98c6ae60febb35de2e8f2fd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 13 14:47:08 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 13 14:47:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6213a0be

sys-devel/clang-common: drop -Werror=strict-prototypes for 15.x

We're keeping -Werror=deprecated-non-prototype for 15.x as there's no
better option though, as we need some way to emulate Clang 16's strict
behaviour in Clang 15, even though this overshoots it a bit.

But it isn't ideal as it still affects e.g. -std=c89.

Bug: https://bugs.gentoo.org/876985
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{clang-common-15.0.2-r1.ebuild => clang-common-15.0.2-r2.ebuild}     | 1 -
 sys-devel/clang-common/clang-common-15.0.3.9999.ebuild                   | 1 -
 2 files changed, 2 deletions(-)

diff --git a/sys-devel/clang-common/clang-common-15.0.2-r1.ebuild 
b/sys-devel/clang-common/clang-common-15.0.2-r2.ebuild
similarity index 99%
rename from sys-devel/clang-common/clang-common-15.0.2-r1.ebuild
rename to sys-devel/clang-common/clang-common-15.0.2-r2.ebuild
index 515cb176e7bd..40df6f0ec79b 100644
--- a/sys-devel/clang-common/clang-common-15.0.2-r1.ebuild
+++ b/sys-devel/clang-common/clang-common-15.0.2-r2.ebuild
@@ -100,7 +100,6 @@ src_install() {
                        -Werror=incompatible-function-pointer-types
 
                        # constructs banned by C2x
-                       -Werror=strict-prototypes
                        -Werror=deprecated-non-prototype
                EOF
 

diff --git a/sys-devel/clang-common/clang-common-15.0.3.9999.ebuild 
b/sys-devel/clang-common/clang-common-15.0.3.9999.ebuild
index 841ceedb1077..d5e7941a5fc8 100644
--- a/sys-devel/clang-common/clang-common-15.0.3.9999.ebuild
+++ b/sys-devel/clang-common/clang-common-15.0.3.9999.ebuild
@@ -99,7 +99,6 @@ src_install() {
                        -Werror=incompatible-function-pointer-types
 
                        # constructs banned by C2x
-                       -Werror=strict-prototypes
                        -Werror=deprecated-non-prototype
                EOF
 

Reply via email to