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

Commit

Permalink
build: avoid -Wno-old-style-declaration with gcc 4.2
Browse files Browse the repository at this point in the history
Fixes the build on FreeBSD <= 9 with the default compiler.

Fixes #4186.
  • Loading branch information
bnoordhuis committed Dec 3, 2012
1 parent 4de274c commit f8999da
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions deps/openssl/openssl.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# found in the LICENSE file.

{
'variables': {
'is_clang': 0,
'gcc_version': 0,
},

'targets': [
{
'target_name': 'openssl',
Expand Down Expand Up @@ -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__'],
Expand Down

0 comments on commit f8999da

Please sign in to comment.