From cdfd5f85c888525c274f309a4b313f8aa2fa6636 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 18 Apr 2013 20:10:33 +0200 Subject: 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. --- engines/made/console.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/made') diff --git a/engines/made/console.cpp b/engines/made/console.cpp index c835988788..0076b6a4f9 100644 --- a/engines/made/console.cpp +++ b/engines/made/console.cpp @@ -26,6 +26,7 @@ namespace Made { MadeConsole::MadeConsole(MadeEngine *vm) : GUI::Debugger(), _vm(vm) { + assert(_vm); } MadeConsole::~MadeConsole() { -- cgit v1.2.3