mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-18 18:30:59 +00:00
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.
This commit is contained in:
parent
4fb289e346
commit
cdfd5f85c8
@ -28,6 +28,7 @@ namespace Cine {
|
||||
bool labyrinthCheat;
|
||||
|
||||
CineConsole::CineConsole(CineEngine *vm) : GUI::Debugger(), _vm(vm) {
|
||||
assert(_vm);
|
||||
DCmd_Register("labyrinthCheat", WRAP_METHOD(CineConsole, Cmd_LabyrinthCheat));
|
||||
|
||||
labyrinthCheat = false;
|
||||
|
@ -26,6 +26,7 @@
|
||||
namespace Draci {
|
||||
|
||||
DraciConsole::DraciConsole(DraciEngine *vm) : GUI::Debugger(), _vm(vm) {
|
||||
assert(_vm);
|
||||
}
|
||||
|
||||
DraciConsole::~DraciConsole() {
|
||||
|
@ -25,6 +25,7 @@
|
||||
namespace DreamWeb {
|
||||
|
||||
DreamWebConsole::DreamWebConsole(DreamWebEngine *vm) : GUI::Debugger(), _vm(vm) {
|
||||
assert(_vm);
|
||||
}
|
||||
|
||||
DreamWebConsole::~DreamWebConsole() {
|
||||
|
@ -26,6 +26,7 @@
|
||||
namespace Made {
|
||||
|
||||
MadeConsole::MadeConsole(MadeEngine *vm) : GUI::Debugger(), _vm(vm) {
|
||||
assert(_vm);
|
||||
}
|
||||
|
||||
MadeConsole::~MadeConsole() {
|
||||
|
@ -26,6 +26,7 @@
|
||||
namespace Sword1 {
|
||||
|
||||
SwordConsole::SwordConsole(SwordEngine *vm) : GUI::Debugger(), _vm(vm) {
|
||||
assert(_vm);
|
||||
}
|
||||
|
||||
SwordConsole::~SwordConsole() {
|
||||
|
@ -26,6 +26,7 @@
|
||||
namespace Sword25 {
|
||||
|
||||
Sword25Console::Sword25Console(Sword25Engine *vm) : GUI::Debugger(), _vm(vm) {
|
||||
assert(_vm);
|
||||
}
|
||||
|
||||
Sword25Console::~Sword25Console() {
|
||||
|
@ -26,6 +26,7 @@
|
||||
namespace Toon {
|
||||
|
||||
ToonConsole::ToonConsole(ToonEngine *vm) : GUI::Debugger(), _vm(vm) {
|
||||
assert(_vm);
|
||||
}
|
||||
|
||||
ToonConsole::~ToonConsole() {
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user