mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
build: disable format-zero-length warning
format-zero-length warns against printf-style calls with zero-length format string. vfs_full_audit module has such calls, and up until now there was no warning against it because the do_log in vfs_full_audit is not recognized as printf-style function. In a following commit the do_log will be converted to a printf-style function, hence the need to disable this warning. (an alternative would be to disable only for vfs_full_audit, but that would complicate things needlessly). Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
7a2d8aa084
commit
e973ac0643
@ -708,6 +708,7 @@ def SAMBA_CONFIG_H(conf, path=None):
|
|||||||
testflags=True)
|
testflags=True)
|
||||||
|
|
||||||
conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True)
|
conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True)
|
||||||
|
conf.ADD_CFLAGS('-Wno-format-zero-length', testflags=True)
|
||||||
conf.ADD_CFLAGS('-Werror=format-security -Wformat-security', testflags=True)
|
conf.ADD_CFLAGS('-Werror=format-security -Wformat-security', testflags=True)
|
||||||
# This check is because for ldb_search(), a NULL format string
|
# This check is because for ldb_search(), a NULL format string
|
||||||
# is not an error, but some compilers complain about that.
|
# is not an error, but some compilers complain about that.
|
||||||
|
Loading…
Reference in New Issue
Block a user