summaryrefslogtreecommitdiff
path: root/emulators/tme
diff options
context:
space:
mode:
authormrg <mrg@pkgsrc.org>2016-04-04 18:00:16 +0000
committermrg <mrg@pkgsrc.org>2016-04-04 18:00:16 +0000
commitf0735e70485f0fef8d2084bfa5d8a268f9d43bc9 (patch)
tree260239235ac273efb207c5a5225adc0dd51c3198 /emulators/tme
parent067a6e69af169ccf4e0e2f4afc73e9737d02a307 (diff)
downloadpkgsrc-f0735e70485f0fef8d2084bfa5d8a268f9d43bc9.tar.gz
don't bother turning off every individual warning that comes up with
modern compilers, turn off -Werror globally and avoid the creeping failures each compiler update (this affects both gcc and clang.) apply -fno-strict-aliasing for all foreseeable future gcc versions. this now works with gcc 5.3. ok wiz, joerg
Diffstat (limited to 'emulators/tme')
-rw-r--r--emulators/tme/Makefile27
1 files changed, 7 insertions, 20 deletions
diff --git a/emulators/tme/Makefile b/emulators/tme/Makefile
index 64da72092d7..cad4e21e436 100644
--- a/emulators/tme/Makefile
+++ b/emulators/tme/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.59 2015/09/13 15:08:09 joerg Exp $
+# $NetBSD: Makefile,v 1.60 2016/04/04 18:00:16 mrg Exp $
#
DISTNAME= tme-0.8
@@ -19,29 +19,16 @@ GNU_CONFIGURE= yes
USE_TOOLS+= gmake perl:run pkg-config yacc
CONFIGURE_ARGS+= --disable-debug
+# XXX Turn off -Werror for now; there are a very very large number of
+# warnings generated, increasing with every compiler version.
+CONFIGURE_ARGS+= --disable-warnings
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../mk/compiler.mk"
-.if !empty(PKGSRC_COMPILER:Mclang)
-_WRAP_EXTRA_ARGS.CC+= -Wno-error=tautological-compare \
- -Wno-error=sometimes-uninitialized \
- -Wno-error=unused-function \
- -Wno-error=absolute-value \
- -Wno-error=pointer-bool-conversion
-CWRAPPERS_APPEND.cc+= -Wno-error=tautological-compare \
- -Wno-error=sometimes-uninitialized \
- -Wno-error=unused-function \
- -Wno-error=absolute-value \
- -Wno-error=pointer-bool-conversion
-.elif !empty(CC_VERSION:Mgcc-4.8.*)
-_WRAP_EXTRA_ARGS.CC+= -Wno-error=unused-but-set-variable \
- -Wno-error=array-bounds \
- -fno-strict-aliasing
-CWRAPPERS_APPEND.cc+= -Wno-error=unused-but-set-variable \
- -Wno-error=array-bounds \
- -fno-strict-aliasing
-
+.if !empty(CC_VERSION:Mgcc-4.[89].*) || !empty(CC_VERSION:Mgcc-[56789].*)
+_WRAP_EXTRA_ARGS.CC+= -fno-strict-aliasing
+CWRAPPERS_APPEND.cc+= -fno-strict-aliasing
.endif
PLIST_VARS+= bsd