summaryrefslogtreecommitdiffstats
path: root/cddl/lib
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2013-11-03 21:05:44 +0000
committersbruno <sbruno@FreeBSD.org>2013-11-03 21:05:44 +0000
commit8fc848171e4f997ba11f0a513f0c761f94bfac2b (patch)
treea6848b06338e0bbd603345b894d10579e463dd1b /cddl/lib
parent2bb87257fa61414e1cf441ab211bba440e9e53f9 (diff)
downloadFreeBSD-src-8fc848171e4f997ba11f0a513f0c761f94bfac2b.zip
FreeBSD-src-8fc848171e4f997ba11f0a513f0c761f94bfac2b.tar.gz
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);
Diffstat (limited to 'cddl/lib')
-rw-r--r--cddl/lib/libnvpair/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/cddl/lib/libnvpair/Makefile b/cddl/lib/libnvpair/Makefile
index bd159fc..630410d 100644
--- a/cddl/lib/libnvpair/Makefile
+++ b/cddl/lib/libnvpair/Makefile
@@ -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>
OpenPOWER on IntegriCloud