| Index: build/common.gypi
|
| diff --git a/build/common.gypi b/build/common.gypi
|
| index ae65c06a52e36a39c7934d224faeefe4c8df3da3..cbea95780ec9259301466486890457d51b26eb90 100644
|
| --- a/build/common.gypi
|
| +++ b/build/common.gypi
|
| @@ -3140,12 +3140,8 @@
|
| },
|
| 'conditions': [
|
| [ 'os_posix==1 and OS!="mac" and OS!="ios"', {
|
| - # We don't want to get warnings from third-party code,
|
| - # so remove any existing warning-enabling flags like -Wall.
|
| - 'cflags!': [
|
| - '-Wall',
|
| - '-Wextra',
|
| - ],
|
| + # Remove -Wextra for third-party code.
|
| + 'cflags!': [ '-Wextra' ],
|
| 'cflags_cc': [
|
| # Don't warn about hash_map in third-party code.
|
| '-Wno-deprecated',
|
| @@ -3156,6 +3152,11 @@
|
| '-Wno-format',
|
| ],
|
| }],
|
| + [ 'os_posix==1 and clang!=1 and OS!="mac" and OS!="ios"', {
|
| + # When we don't control the compiler, don't use -Wall for
|
| + # third-party code either.
|
| + 'cflags!': [ '-Wall' ],
|
| + }],
|
| # TODO: Fix all warnings on chromeos too.
|
| [ 'os_posix==1 and OS!="mac" and OS!="ios" and (clang!=1 or chromeos==1)', {
|
| 'cflags!': [
|
|
|