svn commit: r257592 - head/cddl/lib/libnvpair
Sean Bruno
sbruno at FreeBSD.org
Sun Nov 3 21:05:45 UTC 2013
Author: sbruno
Date: Sun Nov 3 21:05:44 2013
New Revision: 257592
URL: http://svnweb.freebsd.org/changeset/base/257592
Log:
This library uses macros to define fprintf behvavior for several object types
The compiler will see the non-string literal arguments to the fprintf calls and
omit warnings for them. Quiese these warnings in contrib code:
cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format
string is not a string literal (potentially insecure) [-Wformat-security]
ARENDER(pctl, nvlist_array, nvl, name, val, nelem);
Modified:
head/cddl/lib/libnvpair/Makefile
Modified: head/cddl/lib/libnvpair/Makefile
==============================================================================
--- head/cddl/lib/libnvpair/Makefile Sun Nov 3 20:56:28 2013 (r257591)
+++ head/cddl/lib/libnvpair/Makefile Sun Nov 3 21:05:44 2013 (r257592)
@@ -21,4 +21,13 @@ CFLAGS+= -I${.CURDIR}/../../../sys
CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/head
CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/lib/libumem
+# This library uses macros to define fprintf behvavior for several object types
+# The compiler will see the non-string literal arguments to the fprintf calls and
+# omit warnings for them. Quiese these warnings in contrib code:
+#
+# cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format
+# string is not a string literal (potentially insecure) [-Wformat-security]
+# ARENDER(pctl, nvlist_array, nvl, name, val, nelem);
+#
+CFLAGS+= -Wno-format-security
.include <bsd.lib.mk>
More information about the svn-src-head
mailing list