From 924f3f000e627f0c12f1b2381608b3182c2d53c5 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 5 Apr 2018 13:33:56 -0700 Subject: [PATCH] wafsamba: Add '-Werror=strict-overflow -Wstrict-overflow=2' to the developer build We could move it to 3, but shouldn't go higher. If you set it to 4 and 5 you will probably also get a lot of false positives. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Apr 6 02:07:16 CEST 2018 on sn-devel-144 --- buildtools/wafsamba/samba_autoconf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 35f4f36f61c..bdd7c8bd195 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -713,6 +713,8 @@ def SAMBA_CONFIG_H(conf, path=None): testflags=True) conf.ADD_CFLAGS('-Wimplicit-fallthrough', testflags=True) + conf.ADD_CFLAGS('-Werror=strict-overflow -Wstrict-overflow=2', + testflags=True) conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True) conf.ADD_CFLAGS('-Wno-format-zero-length', testflags=True) -- 2.34.1