gn2bp: Add -Wno-null-pointer-subtraction to the default flags
Test: m cronet_aml_components_cronet_android_cronet Change-Id: I129160617c30b977a39400a91d10ab8a5e61cb8f
This commit is contained in:
parent
631443ef83
commit
54d5244132
2 changed files with 2 additions and 0 deletions
|
|
@ -5103,6 +5103,7 @@ cc_defaults {
|
|||
"-Wno-macro-redefined",
|
||||
"-Wno-missing-field-initializers",
|
||||
"-Wno-non-virtual-dtor",
|
||||
"-Wno-null-pointer-subtraction",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-sign-promo",
|
||||
"-Wno-unreachable-code-loop-increment",
|
||||
|
|
|
|||
|
|
@ -1209,6 +1209,7 @@ def create_blueprint_for_targets(gn, targets):
|
|||
'-Wno-sign-compare',
|
||||
'-Wno-sign-promo',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-null-pointer-subtraction', # Needed to libevent
|
||||
'-Wno-deprecated-non-prototype', # needed for zlib
|
||||
'-fvisibility=hidden',
|
||||
'-Wno-ambiguous-reversed-operator', # needed for icui18n
|
||||
|
|
|
|||
Loading…
Reference in a new issue