diff options
| author | christos <christos@NetBSD.org> | 2023-01-25 22:35:06 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2023-01-25 22:35:06 +0000 |
| commit | b868d055e10805fccfcf372e5010cfba39ea48dd (patch) | |
| tree | 034652bd8d439db0278f8fb6b94aa99918b1ad2c /external/mit | |
| parent | 4844c44e9aa77096f18062be5b1126d91efa9152 (diff) | |
fix clang build
Diffstat (limited to 'external/mit')
| -rw-r--r-- | external/mit/xorg/lib/fontconfig/src/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/external/mit/xorg/lib/fontconfig/src/Makefile b/external/mit/xorg/lib/fontconfig/src/Makefile index ad107f2250f..42ef7685563 100644 --- a/external/mit/xorg/lib/fontconfig/src/Makefile +++ b/external/mit/xorg/lib/fontconfig/src/Makefile @@ -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 @@ CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/freetype2 \ -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 |
