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:
commit
4e644f786a
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
12
patches/clang51/no-unused-variable.patch
Normal file
12
patches/clang51/no-unused-variable.patch
Normal 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',
|
||||
],
|
||||
},
|
Loading…
Add table
Reference in a new issue