aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-11-23 00:57:01 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-11-23 00:57:01 +0200
commit1caf7e6f4a6896ba46278ef3f2b5249355e2b293 (patch)
tree1c2bcfa102d3fbb2d60246ae119b4d52bd9dfcde /compilers.py
parente33cf3134768e180ab76df91d9a00c28f1915231 (diff)
downloadmeson-1caf7e6f4a6896ba46278ef3f2b5249355e2b293.zip
meson-1caf7e6f4a6896ba46278ef3f2b5249355e2b293.tar.gz
meson-1caf7e6f4a6896ba46278ef3f2b5249355e2b293.tar.bz2
Yet another step in the neverending saga of -Wpedantic.
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/compilers.py b/compilers.py
index 46797c9..b205cd5 100644
--- a/compilers.py
+++ b/compilers.py
@@ -1125,7 +1125,7 @@ class GnuCCompiler(CCompiler):
self.id = 'gcc'
self.gcc_type = gcc_type
self.warn_args = {'1': ['-Wall', '-Winvalid-pch'],
- '2': ['-Wall', '-Wpedantic', '-Winvalid-pch'],
+ '2': ['-Wall', '-Wextra', '-Winvalid-pch'],
'3' : ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch']}
def get_pic_args(self):
@@ -1187,7 +1187,7 @@ class GnuObjCCompiler(ObjCCompiler):
# if this breaks your use case.
self.gcc_type = GCC_STANDARD
self.warn_args = {'1': ['-Wall', '-Winvalid-pch'],
- '2': ['-Wall', '-Wpedantic', '-Winvalid-pch'],
+ '2': ['-Wall', '-Wextra', '-Winvalid-pch'],
'3' : ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch']}
def get_buildtype_args(self, buildtype):
@@ -1212,7 +1212,7 @@ class GnuObjCPPCompiler(ObjCPPCompiler):
# if this breaks your use case.
self.gcc_type = GCC_STANDARD
self.warn_args = {'1': ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor'],
- '2': ['-Wall', '-Wpedantic', '-Winvalid-pch', '-Wnon-virtual-dtor'],
+ '2': ['-Wall', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor'],
'3' : ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor']}
def get_buildtype_args(self, buildtype):
@@ -1238,13 +1238,11 @@ class ClangObjCPPCompiler(GnuObjCPPCompiler):
self.id = 'clang'
class ClangCCompiler(CCompiler):
- std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
-
def __init__(self, exelist, version, is_cross, exe_wrapper=None):
CCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)
self.id = 'clang'
self.warn_args = {'1': ['-Wall', '-Winvalid-pch'],
- '2': ['-Wall', '-Wpedantic', '-Winvalid-pch'],
+ '2': ['-Wall', '-Wextra', '-Winvalid-pch'],
'3' : ['-Weverything']}
def get_buildtype_args(self, buildtype):
@@ -1288,8 +1286,8 @@ class GnuCPPCompiler(CPPCompiler):
CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrap)
self.id = 'gcc'
self.gcc_type = gcc_type
- self.warn_args = {'1': ['-Wall', '-Winvalid-pch'],
- '2': ['-Wall', '-Wpedantic', '-Winvalid-pch', '-Wnon-virtual-dtor'],
+ self.warn_args = {'1': ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor'],
+ '2': ['-Wall', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor'],
'3': ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor']}
def get_always_args(self):
@@ -1335,7 +1333,7 @@ class ClangCPPCompiler(CPPCompiler):
CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)
self.id = 'clang'
self.warn_args = {'1': ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor'],
- '2': ['-Wall', '-Wpedantic', '-Winvalid-pch', '-Wnon-virtual-dtor'],
+ '2': ['-Wall', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor'],
'3': ['-Weverything']}
def get_buildtype_args(self, buildtype):