Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/lib/fontconfig/src fix clang build



details:   https://anonhg.NetBSD.org/src/rev/0d1df550c3c7
branches:  trunk
changeset: 373235:0d1df550c3c7
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 25 22:35:06 2023 +0000

description:
fix clang build

diffstat:

 external/mit/xorg/lib/fontconfig/src/Makefile |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r c752547e5425 -r 0d1df550c3c7 external/mit/xorg/lib/fontconfig/src/Makefile
--- a/external/mit/xorg/lib/fontconfig/src/Makefile     Wed Jan 25 21:45:37 2023 +0000
+++ b/external/mit/xorg/lib/fontconfig/src/Makefile     Wed Jan 25 22:35:06 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.28 2023/01/22 20:36:46 christos Exp $
+#      $NetBSD: Makefile,v 1.29 2023/01/25 22:35:06 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -291,8 +291,11 @@
                -I. \
                -I${X11SRCDIR.${LIB}}
 
-CPPFLAGS.fccache.c+=   -Wno-error=discarded-qualifiers
-CPPFLAGS.fccfg.c+=     -Wno-error=discarded-qualifiers
+IGNORE_QUALIFIERS+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :}
+IGNORE_QUALIFIERS+= ${${ACTIVE_CC} == "clang":? -Wno-error=incompatible-pointer-types-discards-qualifiers :}
+
+CPPFLAGS.fccache.c+=   ${IGNORE_QUALIFIERS}
+CPPFLAGS.fccfg.c+=     ${IGNORE_QUALIFIERS}
 
 .if ${MACHINE_ARCH:Mvax}
 COPTS.fccache.c+=      -O0



Home | Main Index | Thread Index | Old Index