aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2011-05-05 17:43:33 +0200
committerMax Horn2011-05-05 17:43:33 +0200
commitf9868c807d5f9a39637db45eec9b0248cb8f8de5 (patch)
treebe161759bc246caba0f1d2d613179feb936f652a /base
parent921030f4ef9ff41ff3387ac8c61ffd1f6e709611 (diff)
downloadscummvm-rg350-f9868c807d5f9a39637db45eec9b0248cb8f8de5.tar.gz
scummvm-rg350-f9868c807d5f9a39637db45eec9b0248cb8f8de5.tar.bz2
scummvm-rg350-f9868c807d5f9a39637db45eec9b0248cb8f8de5.zip
BASE: Suppress pointless warning message (fixes bug #3291522)
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index fc4523b895..b34eb6966a 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -354,7 +354,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();
}