Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: build/common.gypi

Issue 13811009: Fix build warnings with gcc4.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add gcc_version check Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 0fe8b73a27892551156cd5ee253a5398b17a5165..52b25b1bc5ae8eb5fc5aecd085a3fe94a4a7d1b6 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2694,6 +2694,14 @@
},
},
'conditions': [
+ # Don't warn about the "typedef 'foo' locally defined but not used"
+ # for gcc 4.8.
+ # TODO: remove this flag once all builds work. See crbug.com/227506
+ [ 'gcc_version>=48', {
+ 'cflags': [
+ '-Wno-unused-local-typedefs',
+ ],
+ }],
['target_arch=="ia32"', {
'target_conditions': [
['_toolset=="target"', {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698