aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorMax Horn2013-04-18 20:10:33 +0200
committerMax Horn2013-04-18 23:50:19 +0200
commitcdfd5f85c888525c274f309a4b313f8aa2fa6636 (patch)
tree1bcb264633ec39e51e74d34fa00559f2ba9127b8 /engines/toon
parent4fb289e346c5727ad51066ddf317e9d2582b96be (diff)
downloadscummvm-rg350-cdfd5f85c888525c274f309a4b313f8aa2fa6636.tar.gz
scummvm-rg350-cdfd5f85c888525c274f309a4b313f8aa2fa6636.tar.bz2
scummvm-rg350-cdfd5f85c888525c274f309a4b313f8aa2fa6636.zip
ENGINES: Silence clang warning about unused private member _vm
This affects the Console / debugger classes of multiple engines. An alternative solution would have been to remove the unused _vm member vars. However, it seems likely that in the future, the _vm member could be useful for methods added to the console. So instead, we add a simple assert(_vm) to silence the clang warning.
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/console.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/toon/console.cpp b/engines/toon/console.cpp
index 8037dca4cb..18f81e1323 100644
--- a/engines/toon/console.cpp
+++ b/engines/toon/console.cpp
@@ -26,6 +26,7 @@
namespace Toon {
ToonConsole::ToonConsole(ToonEngine *vm) : GUI::Debugger(), _vm(vm) {
+ assert(_vm);
}
ToonConsole::~ToonConsole() {