summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-11-10 16:56:21 +0100
committerOlly Betts <olly@survex.com>2022-02-03 21:52:55 +1300
commit80cbf4ac62d516819db6e0d547d5776ebe2bb544 (patch)
tree185d8dd085a036879b7194ac8520d806a1bf1190
parent7cb2f46e06fef59a3fe2fb5283bc31326a091f8a (diff)
downloadswig-enable-more-warnings-in-ci.tar.gz
Let us see what the fallout is, no promises though ;)enable-more-warnings-in-ci
-rwxr-xr-xTools/testflags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/testflags.py b/Tools/testflags.py
index 16e4d8aee..b65c3af72 100755
--- a/Tools/testflags.py
+++ b/Tools/testflags.py
@@ -3,7 +3,7 @@
def get_cflags(language, std, compiler):
if std == None or len(std) == 0:
std = "gnu89"
- c_common = "-fdiagnostics-show-option -std=" + std + " -Wno-long-long -Wreturn-type -Wmissing-field-initializers"
+ c_common = "-fdiagnostics-show-option -std=" + std + " -Wno-long-long -Wreturn-type -Wmissing-field-initializers -Wshadow -Wstrict-prototypes"
if std == "gnu89" or std == "gnu90":
# gnu89 standard allows declaration after headers
# use c99 or gnu99 if feature is necessary for using target language
@@ -38,7 +38,7 @@ def get_cflags(language, std, compiler):
def get_cxxflags(language, std, compiler):
if std == None or len(std) == 0:
std = "c++98"
- cxx_common = "-fdiagnostics-show-option -std=" + std + " -Wno-long-long -Wreturn-type -Wmissing-field-initializers"
+ cxx_common = "-fdiagnostics-show-option -std=" + std + " -Wno-long-long -Wreturn-type -Wmissing-field-initializers -Wshadow"
cxxflags = {
"csharp":"-Werror " + cxx_common,
"d":"-Werror " + cxx_common,