Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Add -Wno-unused-variable flag to OS X clang flag #124

Merged
merged 1 commit into from
Jun 10, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ext/libv8/patcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def patch_directories_for(compiler)
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
Expand Down
12 changes: 12 additions & 0 deletions patches/clang51/no-unused-variable.patch
Original file line number Diff line number Diff line change
@@ -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',
],
},