From e6f8404827958705a5d7fc92a43efed365dd0451 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 14 Feb 2019 12:06:57 +0100 Subject: [PATCH] wafsamba: Enable warnings about format overflows Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- buildtools/wafsamba/samba_autoconf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 06ec7da333a..6e8b6ab4efd 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -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)