[Scummvm-git-logs] scummvm master -> 47811167d5ddd9cbf64099ad36f2da5ae413fc86
digitall
dgturner at iee.org
Wed Jul 24 22:02:52 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
47811167d5 WINTERMUTE: Fix GCC Compilation Warnings
Commit: 47811167d5ddd9cbf64099ad36f2da5ae413fc86
https://github.com/scummvm/scummvm/commit/47811167d5ddd9cbf64099ad36f2da5ae413fc86
Author: D G Turner (digitall at scummvm.org)
Date: 2019-07-24T20:59:31+01:00
Commit Message:
WINTERMUTE: Fix GCC Compilation Warnings
Have commented out rather than removed the lines causing unused variable
warnings as they might be used again in future.
Changed paths:
engines/wintermute/base/scriptables/script_ext_directory.cpp
diff --git a/engines/wintermute/base/scriptables/script_ext_directory.cpp b/engines/wintermute/base/scriptables/script_ext_directory.cpp
index faf3ac1..0b5c7a7 100644
--- a/engines/wintermute/base/scriptables/script_ext_directory.cpp
+++ b/engines/wintermute/base/scriptables/script_ext_directory.cpp
@@ -64,7 +64,7 @@ bool SXDirectory::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSt
//////////////////////////////////////////////////////////////////////////
if (strcmp(name, "Create") == 0) {
stack->correctParams(1);
- const char *path = stack->pop()->getString();
+ //const char *path = stack->pop()->getString();
if (BaseEngine::instance().getGameId() == "hamlet") {
// No need to actually create anything since "gamelet.save" is stored at SavefileManager
@@ -82,7 +82,7 @@ bool SXDirectory::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSt
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "Delete") == 0) {
stack->correctParams(1);
- const char *path = stack->pop()->getString();
+ //const char *path = stack->pop()->getString();
warning("Directory.Delete is not implemented! Returning false...");
@@ -95,8 +95,8 @@ bool SXDirectory::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSt
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "GetFiles") == 0 || strcmp(name, "GetDirectories") == 0) {
stack->correctParams(2);
- const char *path = stack->pop()->getString();
- const char *mask = stack->pop()->getString();
+ //const char *path = stack->pop()->getString();
+ //const char *mask = stack->pop()->getString();
stack->pushInt(0);
BaseScriptable *array = makeSXArray(_gameRef, stack);
More information about the Scummvm-git-logs
mailing list