Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumphijack Extend #undef _FORTIFY_SOURCE to both file...
details: https://anonhg.NetBSD.org/src/rev/07dcd810c5ef
branches: trunk
changeset: 788887:07dcd810c5ef
user: pooka <pooka%NetBSD.org@localhost>
date: Sat Jul 27 17:37:29 2013 +0000
description:
Extend #undef _FORTIFY_SOURCE to both files to avoid compiler
warning for -O0 and fortify combination.
from Alessio Sergi via github
diffstat:
lib/librumphijack/Makefile | 3 ++-
lib/librumphijack/hijack.c | 7 ++-----
2 files changed, 4 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 88fd8aa5718e -r 07dcd810c5ef lib/librumphijack/Makefile
--- a/lib/librumphijack/Makefile Sat Jul 27 17:10:28 2013 +0000
+++ b/lib/librumphijack/Makefile Sat Jul 27 17:37:29 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2012/08/25 18:00:06 pooka Exp $
+# $NetBSD: Makefile,v 1.11 2013/07/27 17:37:29 pooka Exp $
#
LIB= rumphijack
@@ -11,6 +11,7 @@
SRCS= hijack.c hijackdlsym.c
CPPFLAGS+= -D_DIAGNOSTIC -D_REENTRANT -I${.CURDIR}/../librumpuser
+CPPFLAGS+= -U_FORTIFY_SOURCE
WARNS?= 5
diff -r 88fd8aa5718e -r 07dcd810c5ef lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c Sat Jul 27 17:10:28 2013 +0000
+++ b/lib/librumphijack/hijack.c Sat Jul 27 17:37:29 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.103 2013/07/22 12:11:03 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.104 2013/07/27 17:37:29 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -25,13 +25,10 @@
* SUCH DAMAGE.
*/
-/* Disable namespace mangling, Fortification is useless here anyway. */
-#undef _FORTIFY_SOURCE
-
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: hijack.c,v 1.103 2013/07/22 12:11:03 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.104 2013/07/27 17:37:29 pooka Exp $");
#endif
#include <sys/param.h>
Home |
Main Index |
Thread Index |
Old Index