1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00
libv8/patches/clang/no-unused-private-field.patch
Petko Bordjukov 2a5af64d0e Revamp patching functionality and add clang patches
This commit fixes #94 and closes #105
2013-12-05 00:48:27 +02:00

28 lines
1.2 KiB
Diff

diff --git a/build/common.gypi b/build/common.gypi
index 3a59639..14bf0f9 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -376,7 +376,8 @@
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
- '-Wnon-virtual-dtor', '-Woverloaded-virtual' ],
+ '-Wnon-virtual-dtor', '-Woverloaded-virtual',
+ '-Wno-unused-private-field' ],
}],
['OS=="linux" and v8_enable_backtrace==1', {
# Support for backtrace_symbols.
diff --git a/build/standalone.gypi b/build/standalone.gypi
index 125c5bf..c8d9b4f 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -98,7 +98,8 @@
'target_defaults': {
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
'-Wnon-virtual-dtor', '-pthread', '-fno-rtti',
- '-fno-exceptions', '-pedantic' ],
+ '-fno-exceptions', '-pedantic',
+ '-Wno-unused-private-field' ],
'ldflags': [ '-pthread', ],
'conditions': [
[ 'OS=="linux"', {