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:
Ben Noordhuis 2012-12-03 02:19:15 +01:00
parent 4de274cbee
commit f8999da514

View File

@ -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__'],