summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-02-03 13:30:10 +0000
committerjoerg <joerg@NetBSD.org>2014-02-03 13:30:10 +0000
commit00ed587acc2d63dbe48a034cf3c0cb4b4e76b60a (patch)
tree3e88308464a5b8e7e3ba9e9383708c6e57c46e7d
parentf7f68625986d764f793bd120da901f225e15c1a1 (diff)
For ancient GCC, disable the missing prototype warning completely.
-rw-r--r--lib/libm/compiler_rt/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libm/compiler_rt/Makefile.inc b/lib/libm/compiler_rt/Makefile.inc
index bab2b9437eb..a4f418c0bcb 100644
--- a/lib/libm/compiler_rt/Makefile.inc
+++ b/lib/libm/compiler_rt/Makefile.inc
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.3 2014/01/31 22:17:50 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.4 2014/02/03 13:30:10 joerg Exp $
COMPILER_RT_SRCDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
@@ -30,6 +30,8 @@ SRCS+= ${src:R}.S
SRCS+= ${src}
. if ${HAVE_GCC:U} != "4"
COPTS.${src}+= -Wno-error=missing-prototypes
+. else
+COPTS.${src}+= -Wno-missing-prototypes
. endif
. endif
.endfor