@@ -990,7 +990,7 @@ def get_gcc_soname_args(gcc_type, shlib_name, path, soversion):
990
990
raise RuntimeError ('Not impelented yet.' )
991
991
992
992
class GnuCCompiler (CCompiler ):
993
- std_warn_args = ['-Wall' , '-Winvalid-pch' ]
993
+ std_warn_args = ['-Wall' , '-Wpedantic' , '- Winvalid-pch' ]
994
994
995
995
def __init__ (self , exelist , version , gcc_type , is_cross , exe_wrapper = None ):
996
996
CCompiler .__init__ (self , exelist , version , is_cross , exe_wrapper )
@@ -1022,7 +1022,7 @@ def can_compile(self, filename):
1022
1022
return super ().can_compile (filename ) or filename .split ('.' )[- 1 ] == 's' # Gcc can do asm, too.
1023
1023
1024
1024
class GnuObjCCompiler (ObjCCompiler ):
1025
- std_warn_args = ['-Wall' , '-Winvalid-pch' ]
1025
+ std_warn_args = ['-Wall' , '-Wpedantic' , '- Winvalid-pch' ]
1026
1026
1027
1027
def __init__ (self , exelist , version , is_cross , exe_wrapper = None ):
1028
1028
ObjCCompiler .__init__ (self , exelist , version , is_cross , exe_wrapper )
@@ -1044,7 +1044,7 @@ def get_soname_args(self, shlib_name, path, soversion):
1044
1044
return get_gcc_soname_args (self .gcc_type , shlib_name , path , soversion )
1045
1045
1046
1046
class GnuObjCPPCompiler (ObjCPPCompiler ):
1047
- std_warn_args = ['-Wall' , '-Winvalid-pch' ]
1047
+ std_warn_args = ['-Wall' , '-Wpedantic' , '- Winvalid-pch' ]
1048
1048
std_opt_args = ['-O2' ]
1049
1049
1050
1050
def __init__ (self , exelist , version , is_cross , exe_wrapper = None ):
@@ -1077,7 +1077,7 @@ def __init__(self, exelist, version, is_cross, exe_wrapper=None):
1077
1077
self .id = 'clang'
1078
1078
1079
1079
class ClangCCompiler (CCompiler ):
1080
- std_warn_args = ['-Wall' , '-Winvalid-pch' ]
1080
+ std_warn_args = ['-Wall' , '-Wpedantic' , '- Winvalid-pch' ]
1081
1081
1082
1082
def __init__ (self , exelist , version , is_cross , exe_wrapper = None ):
1083
1083
CCompiler .__init__ (self , exelist , version , is_cross , exe_wrapper )
@@ -1106,7 +1106,7 @@ def get_pch_use_args(self, pch_dir, header):
1106
1106
1107
1107
1108
1108
class GnuCPPCompiler (CPPCompiler ):
1109
- std_warn_args = ['-Wall' , '-Winvalid-pch' ]
1109
+ std_warn_args = ['-Wall' , '-Wpedantic' , '- Winvalid-pch' ]
1110
1110
# may need to separate the latter to extra_debug_args or something
1111
1111
std_debug_args = ['-g' ]
1112
1112
@@ -1134,7 +1134,7 @@ def get_soname_args(self, shlib_name, path, soversion):
1134
1134
return get_gcc_soname_args (self .gcc_type , shlib_name , path , soversion )
1135
1135
1136
1136
class ClangCPPCompiler (CPPCompiler ):
1137
- std_warn_args = ['-Wall' , '-Winvalid-pch' ]
1137
+ std_warn_args = ['-Wall' , '-Wpedantic' , '- Winvalid-pch' ]
1138
1138
1139
1139
def __init__ (self , exelist , version , is_cross , exe_wrapper = None ):
1140
1140
CPPCompiler .__init__ (self , exelist , version , is_cross , exe_wrapper )
0 commit comments