aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-05-05 17:43:33 +0200
committerMax Horn2011-05-05 17:44:49 +0200
commitb2748520bbd2a604784fe5820d115ed007c31db8 (patch)
tree8f4f4e854f6149998cdcd63aadace2728c12d7ca
parent9c60ba06bcc01f396e8bbdd1c1bf3879b04f85aa (diff)
downloadscummvm-rg350-b2748520bbd2a604784fe5820d115ed007c31db8.tar.gz
scummvm-rg350-b2748520bbd2a604784fe5820d115ed007c31db8.tar.bz2
scummvm-rg350-b2748520bbd2a604784fe5820d115ed007c31db8.zip
BASE: Suppress pointless warning message (fixes bug #3291522)
-rw-r--r--base/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 7a77d6af7a..11cd6de67c 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -351,7 +351,8 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
// TODO: deal with settings that require plugins to be loaded
res = Base::processSettings(command, settings);
if (res.getCode() != Common::kArgumentNotProcessed) {
- warning("%s", res.getDesc().c_str());
+ if (res.getCode() != Common::kNoError)
+ warning("%s", res.getDesc().c_str());
return res.getCode();
}