summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-06-17 11:45:27 +0000
committerjoerg <joerg@pkgsrc.org>2013-06-17 11:45:27 +0000
commit14d3c1056155d747a0f718dad6d46fce9cdaf65a (patch)
tree23c1074d8739f74b41319f324d74bb180959789b /emulators
parent09f0522631b03496ea9a1d5764d3963ad156ae82 (diff)
downloadpkgsrc-14d3c1056155d747a0f718dad6d46fce9cdaf65a.tar.gz
Override various fatal warnings for clang, even if some are genuine
bugs.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/mame/Makefile.common14
1 files changed, 13 insertions, 1 deletions
diff --git a/emulators/mame/Makefile.common b/emulators/mame/Makefile.common
index ea9312ff910..758fc8f7daa 100644
--- a/emulators/mame/Makefile.common
+++ b/emulators/mame/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.9 2013/06/13 14:27:59 wiz Exp $
+# $NetBSD: Makefile.common,v 1.10 2013/06/17 11:45:27 joerg Exp $
#
# used by emulators/mame/Makefile
# used by emulators/mess/Makefile
@@ -31,6 +31,18 @@ MAKE_ENV= NOWERROR=1
# we don't want to pull in qt4
MAKE_ENV= NO_USE_QTDEBUG=1
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+_WRAP_EXTRA_ARGS.CC+= -Wno-error=cast-align \
+ -Wno-error=constant-logical-operand \
+ -Wno-error=sometimes-uninitialized \
+ -Wno-error=shift-count-overflow \
+ -Wno-error=unused-private-field \
+ -Wno-error=tautological-constant-out-of-range-compare \
+ -Wno-error=tautological-compare \
+ -Wno-error=self-assign-field
+.endif
+
. include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN:Mbig}
MAKE_FLAGS+= BIGENDIAN=true