1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Merge pull request #124 from sikachu/os-x-no-unused-variable

Add `-Wno-unused-variable` flag to OS X clang flag
This commit is contained in:
Petko Bordjukov 2014-06-11 00:55:06 +03:00
commit 4e644f786a
2 changed files with 13 additions and 0 deletions

View file

@ -18,6 +18,7 @@ module Libv8
when Compiler::Clang
patch_directories << 'clang'
patch_directories << 'clang33' if compiler.version >= '3.3'
patch_directories << 'clang51' if compiler.version >= '5.1'
end
patch_directories

View file

@ -0,0 +1,12 @@
diff --git a/build/standalone.gypi b/build/standalone.gypi
index 125c5bf..a283a28 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -210,6 +212,7 @@
'-Wendif-labels',
'-W',
'-Wno-unused-parameter',
+ '-Wno-unused-variable',
'-Wnon-virtual-dtor',
],
},