Add missing -Wno-missing-field-initializer flag to standalone.gypi.
Chrome uses -Wno-missing-field-initializers when building V8, so we should better use that as well. It silences warnings generated for the GTest port files. BUG=v8:3518 LOG=n R=jochen@chromium.org Review URL: https://codereview.chromium.org/535283006 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23676 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
b1eca2cea7
commit
dd34bc2cab
@ -215,9 +215,18 @@
|
||||
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
||||
or OS=="netbsd"', {
|
||||
'target_defaults': {
|
||||
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
|
||||
'-Wno-long-long', '-pthread', '-fno-exceptions',
|
||||
'-pedantic' ],
|
||||
'cflags': [
|
||||
'-Wall',
|
||||
'<(werror)',
|
||||
'-W',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-long-long',
|
||||
'-pthread',
|
||||
'-fno-exceptions',
|
||||
'-pedantic',
|
||||
# Don't warn about the "struct foo f = {0};" initialization pattern.
|
||||
'-Wno-missing-field-initializers',
|
||||
],
|
||||
'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ],
|
||||
'ldflags': [ '-pthread', ],
|
||||
'conditions': [
|
||||
@ -234,8 +243,15 @@
|
||||
# or OS=="netbsd"'
|
||||
['OS=="qnx"', {
|
||||
'target_defaults': {
|
||||
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
|
||||
'-fno-exceptions' ],
|
||||
'cflags': [
|
||||
'-Wall',
|
||||
'<(werror)',
|
||||
'-W',
|
||||
'-Wno-unused-parameter',
|
||||
'-fno-exceptions',
|
||||
# Don't warn about the "struct foo f = {0};" initialization pattern.
|
||||
'-Wno-missing-field-initializers',
|
||||
],
|
||||
'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ],
|
||||
'conditions': [
|
||||
[ 'visibility=="hidden"', {
|
||||
@ -361,6 +377,8 @@
|
||||
'-Wendif-labels',
|
||||
'-W',
|
||||
'-Wno-unused-parameter',
|
||||
# Don't warn about the "struct foo f = {0};" initialization pattern.
|
||||
'-Wno-missing-field-initializers',
|
||||
],
|
||||
},
|
||||
'conditions': [
|
||||
|
Loading…
Reference in New Issue
Block a user