1
0
Fork 0

Fix a GCC warning: catching exception by value

This commit is contained in:
James Turner 2019-10-19 17:04:36 +01:00
parent c2f163ec97
commit a18dda21ef

View file

@ -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;