aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/scriptables
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/scriptables')
-rw-r--r--engines/wintermute/scriptables/ScEngine.cpp2
-rw-r--r--engines/wintermute/scriptables/ScEngine.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/scriptables/ScEngine.cpp b/engines/wintermute/scriptables/ScEngine.cpp
index 67e9f9eef0..bb65b438de 100644
--- a/engines/wintermute/scriptables/ScEngine.cpp
+++ b/engines/wintermute/scriptables/ScEngine.cpp
@@ -777,7 +777,7 @@ HRESULT CScEngine::LoadBreakpoints() {
int Count = Game->_registry->ReadInt("Debug", "NumBreakpoints", 0);
for (int i = 1; i <= Count; i++) {
- uint32 BufSize = 512;
+ /* uint32 BufSize = 512; */
sprintf(Key, "Breakpoint%d", i);
AnsiString breakpoint = Game->_registry->ReadString("Debug", Key, "");
diff --git a/engines/wintermute/scriptables/ScEngine.h b/engines/wintermute/scriptables/ScEngine.h
index 5ba93d6d0e..ab1504e899 100644
--- a/engines/wintermute/scriptables/ScEngine.h
+++ b/engines/wintermute/scriptables/ScEngine.h
@@ -42,8 +42,8 @@ typedef byte *(*DLL_COMPILE_BUFFER)(byte *Buffer, char *Source, uint32 BufferSi
typedef byte *(*DLL_COMPILE_FILE)(char *Filename, uint32 *CompiledSize);
typedef void (*DLL_RELEASE_BUFFER)(unsigned char *Buffer);
typedef void (*DLL_SET_CALLBACKS)(CALLBACKS *callbacks, void *Data);
-typedef int (*DLL_DEFINE_FUNCTION)(const char *Name);
-typedef int (*DLL_DEFINE_VARIABLE)(char *Name);
+typedef int (*DLL_DEFINE_FUNCTION)(const char *Name); /* Was non-const, changed to silence warnings */
+typedef int (*DLL_DEFINE_VARIABLE)(const char *Name); /* Was non-const, changed to silence warnings */
typedef void (*COMPILE_ERROR_CALLBACK)(int Line, char *Text , void *Data);
typedef void (*PARSE_ELEMENT_CALLBACK)(int Line, int Type, void *ElementData, void *Data);