Index: third_party/yasm/yasm.gyp |
diff --git a/third_party/yasm/yasm.gyp b/third_party/yasm/yasm.gyp |
index 1f963a383e05c5ca0cf4920a037f5f6c580957b4..3db601a83f6a7750e0f14038b20704698210ad34 100644 |
--- a/third_party/yasm/yasm.gyp |
+++ b/third_party/yasm/yasm.gyp |
@@ -558,8 +558,13 @@ |
'-std=gnu99', |
], |
'variables': { |
+ 'clang_warning_flags': [ |
# re2c is missing CLOSEVOP from one switch. |
- 'clang_warning_flags': [ '-Wno-switch' ], |
+ '-Wno-switch', |
+ # re2c contains many static functions in headers (because it's |
+ # a C library predating C99.) |
+ '-Wno-unused-function', |
+ ], |
}, |
'msvs_disabled_warnings': [ 4267 ], |
}, |