Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/atf/tests/atf/atf-c/detail Turn SSP warnings fo...



details:   https://anonhg.NetBSD.org/src/rev/47708dfa74f2
branches:  trunk
changeset: 767446:47708dfa74f2
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jul 18 19:30:49 2011 +0000

description:
Turn SSP warnings for "dynstr_test.c" off, found by GCC 4.5.

diffstat:

 external/bsd/atf/tests/atf/atf-c/detail/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 9715a40d79f7 -r 47708dfa74f2 external/bsd/atf/tests/atf/atf-c/detail/Makefile
--- a/external/bsd/atf/tests/atf/atf-c/detail/Makefile  Mon Jul 18 19:11:28 2011 +0000
+++ b/external/bsd/atf/tests/atf/atf-c/detail/Makefile  Mon Jul 18 19:30:49 2011 +0000
@@ -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 @@
 .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>



Home | Main Index | Thread Index | Old Index