summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2011-07-18 19:30:49 +0000
committertron <tron@NetBSD.org>2011-07-18 19:30:49 +0000
commitff715df040c2c4448d49d341daf87df7fa118da5 (patch)
tree93adfc542c0262dfb83752dd18e144b3d0875e82
parentaf92fb17d164107fdfa7e3dc32588ee78b7b14f6 (diff)
Turn SSP warnings for "dynstr_test.c" off, found by GCC 4.5.
-rw-r--r--external/bsd/atf/tests/atf/atf-c/detail/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/external/bsd/atf/tests/atf/atf-c/detail/Makefile b/external/bsd/atf/tests/atf/atf-c/detail/Makefile
index 511e6ec531d..32589e437a6 100644
--- a/external/bsd/atf/tests/atf/atf-c/detail/Makefile
+++ b/external/bsd/atf/tests/atf/atf-c/detail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2010/10/20 09:20:11 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2011/07/18 19:30:49 tron Exp $
.include <bsd.own.mk>
@@ -32,4 +32,10 @@ SRCS.${test}= ${test}.c test_helpers.c
.endfor
.undef test
+# Don't warn about functions which cannot be stack smash protected as
+# there are a lot of them.
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
+COPTS.dynstr_test.c= -Wno-stack-protector
+.endif
+
.include <bsd.test.mk>