Skip to content

Commit 9044773

Browse files
committed
Added pedantic flag which I though had already been there since the beginning.
1 parent 36558a4 commit 9044773

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compilers.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def get_gcc_soname_args(gcc_type, shlib_name, path, soversion):
990990
raise RuntimeError('Not impelented yet.')
991991

992992
class GnuCCompiler(CCompiler):
993-
std_warn_args = ['-Wall', '-Winvalid-pch']
993+
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
994994

995995
def __init__(self, exelist, version, gcc_type, is_cross, exe_wrapper=None):
996996
CCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)
@@ -1022,7 +1022,7 @@ def can_compile(self, filename):
10221022
return super().can_compile(filename) or filename.split('.')[-1] == 's' # Gcc can do asm, too.
10231023

10241024
class GnuObjCCompiler(ObjCCompiler):
1025-
std_warn_args = ['-Wall', '-Winvalid-pch']
1025+
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
10261026

10271027
def __init__(self, exelist, version, is_cross, exe_wrapper=None):
10281028
ObjCCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)
@@ -1044,7 +1044,7 @@ def get_soname_args(self, shlib_name, path, soversion):
10441044
return get_gcc_soname_args(self.gcc_type, shlib_name, path, soversion)
10451045

10461046
class GnuObjCPPCompiler(ObjCPPCompiler):
1047-
std_warn_args = ['-Wall', '-Winvalid-pch']
1047+
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
10481048
std_opt_args = ['-O2']
10491049

10501050
def __init__(self, exelist, version, is_cross, exe_wrapper=None):
@@ -1077,7 +1077,7 @@ def __init__(self, exelist, version, is_cross, exe_wrapper=None):
10771077
self.id = 'clang'
10781078

10791079
class ClangCCompiler(CCompiler):
1080-
std_warn_args = ['-Wall', '-Winvalid-pch']
1080+
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
10811081

10821082
def __init__(self, exelist, version, is_cross, exe_wrapper=None):
10831083
CCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)
@@ -1106,7 +1106,7 @@ def get_pch_use_args(self, pch_dir, header):
11061106

11071107

11081108
class GnuCPPCompiler(CPPCompiler):
1109-
std_warn_args = ['-Wall', '-Winvalid-pch']
1109+
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
11101110
# may need to separate the latter to extra_debug_args or something
11111111
std_debug_args = ['-g']
11121112

@@ -1134,7 +1134,7 @@ def get_soname_args(self, shlib_name, path, soversion):
11341134
return get_gcc_soname_args(self.gcc_type, shlib_name, path, soversion)
11351135

11361136
class ClangCPPCompiler(CPPCompiler):
1137-
std_warn_args = ['-Wall', '-Winvalid-pch']
1137+
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
11381138

11391139
def __init__(self, exelist, version, is_cross, exe_wrapper=None):
11401140
CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)

0 commit comments

Comments
 (0)