diff options
author | Max Horn | 2013-04-18 20:10:33 +0200 |
---|---|---|
committer | Max Horn | 2013-04-18 23:50:19 +0200 |
commit | cdfd5f85c888525c274f309a4b313f8aa2fa6636 (patch) | |
tree | 1bcb264633ec39e51e74d34fa00559f2ba9127b8 /engines/tucker | |
parent | 4fb289e346c5727ad51066ddf317e9d2582b96be (diff) | |
download | scummvm-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/tucker')
-rw-r--r-- | engines/tucker/console.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tucker/console.cpp b/engines/tucker/console.cpp index e0f2debc30..17ba2038d0 100644 --- a/engines/tucker/console.cpp +++ b/engines/tucker/console.cpp @@ -11,7 +11,7 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License @@ -26,6 +26,7 @@ namespace Tucker { TuckerConsole::TuckerConsole(TuckerEngine *vm) : _vm(vm) { + assert(_vm); } TuckerConsole::~TuckerConsole() { |