build: avoid -Wno-old-style-declaration with gcc 4.2
Fixes the build on FreeBSD <= 9 with the default compiler. Fixes #4186.
This commit is contained in:
parent
4de274cbee
commit
f8999da514
13
deps/openssl/openssl.gyp
vendored
13
deps/openssl/openssl.gyp
vendored
@ -3,6 +3,11 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'is_clang': 0,
|
||||
'gcc_version': 0,
|
||||
},
|
||||
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'openssl',
|
||||
@ -674,10 +679,10 @@
|
||||
'OPENSSLDIR="/etc/ssl"',
|
||||
'TERMIOS',
|
||||
],
|
||||
'cflags': [
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-old-style-declaration',
|
||||
],
|
||||
'cflags': ['-Wno-missing-field-initializers'],
|
||||
}],
|
||||
['is_clang==1 or gcc_version>=43', {
|
||||
'cflags': ['-Wno-old-style-declaration'],
|
||||
}],
|
||||
['OS=="solaris"', {
|
||||
'defines': ['__EXTENSIONS__'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user