From 0b6579e0e4be09400fe2f99744be1a2ca58ad7ba Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Thu, 12 Jan 2012 22:10:52 +0100 Subject: [PATCH] Fix a minor warning. System complains about "system" call's result being ignored. --- src/Main/main.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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