Fix a GCC warning: catching exception by value
This commit is contained in:
parent
c2f163ec97
commit
a18dda21ef
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ void MetarProperties::set_metar( const char * metarString )
|
|||
try {
|
||||
m = new FGMetar( metarString );
|
||||
}
|
||||
catch( sg_io_exception ) {
|
||||
catch( sg_io_exception& ) {
|
||||
SG_LOG( SG_ENVIRONMENT, SG_WARN, "Can't parse metar: " << metarString );
|
||||
_metarValidNode->setBoolValue(false);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue