summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_host_win.gypi
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 /remoting/remoting_host_win.gypi
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 'remoting/remoting_host_win.gypi')
-rw-r--r--remoting/remoting_host_win.gypi6
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/remoting_host_win.gypi b/remoting/remoting_host_win.gypi
index 78952d5..9f52deb 100644
--- a/remoting/remoting_host_win.gypi
+++ b/remoting/remoting_host_win.gypi
@@ -30,6 +30,12 @@
# GN version: //remoting/host:remoting_lib_idl
'target_name': 'remoting_lib_idl',
'type': 'static_library',
+ 'variables': {
+ 'clang_warning_flags': [
+ # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_"
+ '-Wno-extra-tokens',
+ ],
+ },
'sources': [
'host/win/chromoting_lib_idl.templ',
'<(SHARED_INTERMEDIATE_DIR)/remoting/host/chromoting_lib.h',