Source release 16.4.0
This commit is contained in:
37
third_party/disable_warnings.gypi
vendored
Normal file
37
third_party/disable_warnings.gypi
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 2020 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Including this GYPI file in a |target| or |target_defaults| section will
|
||||
# disable warnings for the affected target(s). This is generally only desirable
|
||||
# in third-party code where we are not responsible for maintenance.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'disable_warnings_include': [
|
||||
'-Wno-error',
|
||||
'-w',
|
||||
],
|
||||
'disable_warnings_exclude': [
|
||||
'-Werror',
|
||||
'-Wall',
|
||||
'-Wextra',
|
||||
'-pedantic',
|
||||
'-pedantic-errors',
|
||||
],
|
||||
'w_error_regex': '^-Werror',
|
||||
},
|
||||
'cflags': ['<@(disable_warnings_include)'],
|
||||
|
||||
'cflags!': ['<@(disable_warnings_exclude)'],
|
||||
'cflags_c!': ['<@(disable_warnings_exclude)'],
|
||||
'cflags_cc!': ['<@(disable_warnings_exclude)'],
|
||||
|
||||
'cflags/': [
|
||||
['exclude', '<(w_error_regex)'],
|
||||
],
|
||||
'cflags_c/': [
|
||||
['exclude', '<(w_error_regex)'],
|
||||
],
|
||||
'cflags_cc/': [
|
||||
['exclude', '<(w_error_regex)'],
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user