always use -Wno-deprecated-declarations when building sdch
This is also needed for c++11 mode in gcc 4.8, not just clang.
BUG=324299
NOTRY=true
Review URL: https://codereview.chromium.org/205963004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258918 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/sdch/sdch.gyp b/sdch/sdch.gyp
index af65409c..ff2c077b 100644
--- a/sdch/sdch.gyp
+++ b/sdch/sdch.gyp
@@ -58,8 +58,6 @@
[ 'OS == "ios"', { 'include_dirs': [ 'ios' ] } ],
[ 'OS == "mac"', { 'include_dirs': [ 'mac' ] } ],
[ 'OS == "win"', { 'include_dirs': [ 'win' ] } ],
- # TODO(mark): Remove usage of the deprecated auto_ptr.
- [ 'clang == 1', { 'cflags': [ '-Wno-deprecated-declarations' ] } ],
],
# open-vcdiff's logging.h introduces static initializers. This was
# reported upstream years ago (
@@ -96,7 +94,11 @@
]
}
},
- 'cflags': [ '-include', '<(logging_dir)/sdch/<(logging_path)' ],
+ 'cflags': [
+ '-include', '<(logging_dir)/sdch/<(logging_path)',
+ # TODO(mostynb): remove this if open-vcdiff is ever updated for c++11:
+ '-Wno-deprecated-declarations',
+ ],
},
],
}