From: ThorstenB Date: Thu, 12 Jan 2012 21:10:52 +0000 (+0100) Subject: Fix a minor warning. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b6579e0e4be09400fe2f99744be1a2ca58ad7ba;p=flightgear.git Fix a minor warning. System complains about "system" call's result being ignored. --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index d6036771a..b4948b259 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -414,7 +414,11 @@ static void fgIdleFunction ( void ) { string command = "mpg123 " + mp3file.str() + "> /dev/null 2>&1"; # endif - system ( command.c_str() ); + if (0 != system ( command.c_str() )) + { + SG_LOG( SG_SOUND, SG_WARN, + "Failed to play mp3 file " << mp3file.str() << ". Maybe mp3 player is not installed." ); + } } #endif // This is the top level init routine which calls all the