1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

wafsamba: Enable warnings about format overflows

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Andreas Schneider 2019-02-14 12:06:57 +01:00 committed by Andreas Schneider
parent d16e9dfc81
commit e6f8404827

View File

@ -738,6 +738,7 @@ def SAMBA_CONFIG_H(conf, path=None):
cflags='-Wmissing-field-initializers -Werror=missing-field-initializers',
msg="Checking C99 init of nested structs."):
conf.ADD_CFLAGS('-Wmissing-field-initializers', testflags=True)
conf.ADD_CFLAGS('-Wformat-overflow=2', testflags=True)
conf.ADD_CFLAGS('-Wcast-align -Wcast-qual', testflags=True)
conf.ADD_CFLAGS('-fno-common', testflags=True)