summaryrefslogtreecommitdiffstats
path: root/google_update
diff options
context:
space:
mode:
authorDaniel Cheng <dcheng@chromium.org>2015-07-10 22:16:19 -0700
committerDaniel Cheng <dcheng@chromium.org>2015-07-11 05:18:17 +0000
commitbe8d6f52672bf61324b2ac988ef7776ade9d1628 (patch)
tree6a4c28fc16b6d8a74f7b9b59af27563ad44b5ec3 /google_update
parent59ef9be12ee89bc452b83bec060d90514dc86c66 (diff)
downloadchromium_src-be8d6f52672bf61324b2ac988ef7776ade9d1628.zip
chromium_src-be8d6f52672bf61324b2ac988ef7776ade9d1628.tar.gz
chromium_src-be8d6f52672bf61324b2ac988ef7776ade9d1628.tar.bz2
Enable -Wextra-tokens on win clang.
This warns on code of the form: #endif RANDOM_TEXT MIDL generated code tends to emit code in this pattern, so suppress this warning when compiling MIDL generated files. BUG=504663 R=thakis@chromium.org TBR=dtseng, robertshield, weitaosu Review URL: https://codereview.chromium.org/1233453008 Cr-Commit-Position: refs/heads/master@{#338435}
Diffstat (limited to 'google_update')
-rw-r--r--google_update/google_update.gyp6
1 files changed, 6 insertions, 0 deletions
diff --git a/google_update/google_update.gyp b/google_update/google_update.gyp
index c3e76d8..990f7e4 100644
--- a/google_update/google_update.gyp
+++ b/google_update/google_update.gyp
@@ -7,6 +7,12 @@
{
'target_name': 'google_update',
'type': 'static_library',
+ 'variables': {
+ 'clang_warning_flags': [
+ # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_"
+ '-Wno-extra-tokens',
+ ],
+ },
'sources': [
'google_update_idl.idl',
'<(SHARED_INTERMEDIATE_DIR)/google_update/google_update_idl.h',