diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-24 12:36:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 12:36:02 +0200 |
commit | e1d16e722ec9742c3f92d20dc433d540339c36e6 (patch) | |
tree | 0f253961a01d55f855a86b991b589e3f796f59e8 | |
parent | 90739c36fa0d74b051bee15081dfc87b5e5dc4d3 (diff) | |
parent | 8d867cf7c5fb4ce0e78b9b62c64d194fdf666874 (diff) |
Merge pull request #28374 from akien-mga/thirdparty-disable-cflags
Also disable C and C++ specific warnings in thirdparty code
-rw-r--r-- | methods.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/methods.py b/methods.py index d2bad7f9dd..9efd8bf2f4 100644 --- a/methods.py +++ b/methods.py @@ -24,10 +24,16 @@ def disable_warnings(self): # We have to remove existing warning level defines before appending /w, # otherwise we get: "warning D9025 : overriding '/W3' with '/w'" warn_flags = ['/Wall', '/W4', '/W3', '/W2', '/W1', '/WX'] - self['CCFLAGS'] = [x for x in self['CCFLAGS'] if not x in warn_flags] self.Append(CCFLAGS=['/w']) + self.Append(CFLAGS=['/w']) + self.Append(CPPFLAGS=['/w']) + self['CCFLAGS'] = [x for x in self['CCFLAGS'] if not x in warn_flags] + self['CFLAGS'] = [x for x in self['CFLAGS'] if not x in warn_flags] + self['CPPFLAGS'] = [x for x in self['CPPFLAGS'] if not x in warn_flags] else: self.Append(CCFLAGS=['-w']) + self.Append(CFLAGS=['-w']) + self.Append(CPPFLAGS=['-w']) def add_module_version_string(self,s): |