This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

build: avoid -Wno-old-style-declaration with gcc 4.2

Fixes the build on FreeBSD <= 9 with the default compiler.

Fixes #4186.
  • Loading branch information...
bnoordhuis committed Dec 3, 2012
1 parent 4de274c commit f8999da51433b70015b1732682dc7f039b486fbd
Showing with 9 additions and 4 deletions.
  1. +9 −4 deps/openssl/openssl.gyp
View
@@ -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__'],

0 comments on commit f8999da

Please sign in to comment.