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);
This commit is contained in:
parent
9161dd723e
commit
6392bb4f3f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user