git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d16e9df
)
wafsamba: Enable warnings about format overflows
author
Andreas Schneider
<asn@samba.org>
Thu, 14 Feb 2019 11:06:57 +0000
(12:06 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 7 May 2019 17:31:23 +0000
(17:31 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
buildtools/wafsamba/samba_autoconf.py
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_autoconf.py
b/buildtools/wafsamba/samba_autoconf.py
index 06ec7da333a465c0824666469411dd49dff47315..6e8b6ab4efdc8ddad966973f778654bc0af955be 100644
(file)
--- 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)