From 9287a0f5c5276c239798f7b4cbfcc0a7406e600b Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 2 Jul 2021 19:27:45 +0300 Subject: [PATCH] wscript: add some more warnings as errors --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wscript b/wscript index 53c50c62..0ac7fa96 100644 --- a/wscript +++ b/wscript @@ -190,6 +190,9 @@ def configure(conf): # so just warn, not error '-Winit-self', '-Werror=implicit-fallthrough=2', # clang incompatible without "=2" + '-Werror=logical-op', + '-Werror=write-strings', +# '-Werror=format=2', # '-Wdouble-promotion', # disable warning flood '-Wstrict-aliasing', ] @@ -204,6 +207,9 @@ def configure(conf): '-Werror=old-style-definition', '-Werror=declaration-after-statement', '-Werror=enum-conversion', + '-Werror=jump-misses-init', + '-Werror=strict-prototypes', +# '-Werror=nested-externs', '-fnonconst-initializers' # owcc ]