diff --git a/config/auto/warnings.pm b/config/auto/warnings.pm
index 52a6068..8fef467 100644
a
|
b
|
|
100 | 100 | |
101 | 101 | my @gcc_or_gpp = qw( |
102 | 102 | -falign-functions=16 |
103 | | -fvisibility=hidden |
104 | 103 | -funit-at-a-time |
105 | 104 | -maccumulate-outgoing-args |
106 | 105 | -W |
… |
… |
|
150 | 149 | -Wvariadic-macros |
151 | 150 | -Wwrite-strings |
152 | 151 | ); |
| 152 | # push @gcc_or_gpp, '-fvisibility=hidden' |
| 153 | # if ( $conf->data->get('gccversion') >= 4.0 and |
| 154 | # ! $conf->data->get('sym_export') ); |
153 | 155 | |
154 | 156 | $gcc->{'basic'} = [ @gcc_or_gpp ]; |
155 | 157 | $gpp->{'basic'} = [ @gcc_or_gpp ]; |
… |
… |
|
292 | 294 | return 1; |
293 | 295 | } |
294 | 296 | |
| 297 | if ( |
| 298 | ( $compiler eq 'gcc' or $compiler eq 'g++' ) and |
| 299 | ( $conf->data->get('gccversion') >= 4.0 ) and |
| 300 | ( ! $conf->data->get('sym_export') ) |
| 301 | ) { |
| 302 | push @{$self->{'warnings'}{$compiler}{'basic'}}, |
| 303 | '-fvisibility=hidden'; |
| 304 | }; |
295 | 305 | # standard warnings. |
296 | 306 | my @warnings = grep {$self->valid_warning($conf, $_)} |
297 | 307 | @{$self->{'warnings'}{$compiler}{'basic'}}; |
diff --git a/t/steps/auto/warnings-01.t b/t/steps/auto/warnings-01.t
index 1810348..50a8d07 100644
a
|
b
|
|
70 | 70 | # Simulate case where --cage warnings are requested |
71 | 71 | $conf->options->set( verbose => undef ); |
72 | 72 | $step = test_step_constructor_and_description($conf); |
73 | | $conf->data->set( gccversion => 'defined' ); |
| 73 | $conf->data->set( gccversion => '4.0' ); |
74 | 74 | $conf->data->set( 'g++' => undef ); |
75 | 75 | $conf->options->set( cage => 1 ); |
76 | 76 | ok($step->runstep($conf), "runstep() returned true value"); |