Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2013 21:05:44 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257592 - head/cddl/lib/libnvpair
Message-ID:  <201311032105.rA3L5ix7042329@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311032105.rA3L5ix7042329>