commit: e7878ba74f45f95af5d6b354ffb6d1d67d503c46
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 08:25:23 2022 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 08:56:02 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7878ba7
net-misc/vncrec: pass -std=gnu89, fixup previous clang fix
Does not build with `clang -std=c2x`, early workaround for
when this will become a default.
(not actively hunting for these, merely revisiting packages
previously looked at for clang16 even if not an issue "yet").
wrt previous fix, thought could get away using a more precise
-Wno-error but gcc does not like it.
Fixes: 0491a4264baf9951dd726b96094459a7b3363b95
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
net-misc/vncrec/vncrec-0.2-r3.ebuild | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net-misc/vncrec/vncrec-0.2-r3.ebuild
b/net-misc/vncrec/vncrec-0.2-r3.ebuild
index 66d88e91b811..5ddfaf0d7f86 100644
--- a/net-misc/vncrec/vncrec-0.2-r3.ebuild
+++ b/net-misc/vncrec/vncrec-0.2-r3.ebuild
@@ -45,7 +45,8 @@ src_configure() {
# XtErrorHandler usage matches docs (seems right), but headers "may" add
# __attribute__((noreturn)) giving an incompatible type error with
clang-16
# (could alternatively use private _X_NORETURN but this may be fragile).
- append-cflags -Wno-error=incompatible-function-pointer-types #871000
+ append-cflags -Wno-error=incompatible-pointer-types #871000
+ append-cflags -std=gnu89 # old codebase, incompatible with c2x
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf -a || die