diff options
author | Ori Avtalion | 2016-01-07 14:52:11 +0200 |
---|---|---|
committer | Ori Avtalion | 2016-01-07 14:55:32 +0200 |
commit | d8045c67273faedd806c0e0f11801df2bb9ce4c6 (patch) | |
tree | b3cb7dc4d71236d12fd26501d00aa4b02991c2e4 /engines/sword2 | |
parent | afd4b82a8ad760abee3224e618e951da72268d51 (diff) | |
download | scummvm-rg350-d8045c67273faedd806c0e0f11801df2bb9ce4c6.tar.gz scummvm-rg350-d8045c67273faedd806c0e0f11801df2bb9ce4c6.tar.bz2 scummvm-rg350-d8045c67273faedd806c0e0f11801df2bb9ce4c6.zip |
JANITORIAL: Fix clang printf warnings
Diffstat (limited to 'engines/sword2')
-rw-r--r-- | engines/sword2/interpreter.cpp | 4 | ||||
-rw-r--r-- | engines/sword2/memory.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword2/interpreter.cpp b/engines/sword2/interpreter.cpp index e7fb979d69..a13161625c 100644 --- a/engines/sword2/interpreter.cpp +++ b/engines/sword2/interpreter.cpp @@ -449,7 +449,7 @@ int Logic::runScript2(byte *scriptData, byte *objectData, byte *offsetPtr) { Read16ip(parameter); stack.push(_vm->_memory->encodePtr(localVars + parameter)); - debug(9, "CP_PUSH_LOCAL_ADDR: &localVars[%d] => %p", parameter / 4, localVars + parameter); + debug(9, "CP_PUSH_LOCAL_ADDR: &localVars[%d] => %p", parameter / 4, (void *)(localVars + parameter)); break; case CP_PUSH_STRING: // Push the address of a string on to the stack @@ -467,7 +467,7 @@ int Logic::runScript2(byte *scriptData, byte *objectData, byte *offsetPtr) { Read32ip(parameter); ptr = objectData + 4 + ResHeader::size() + ObjectHub::size() + parameter; stack.push(_vm->_memory->encodePtr(ptr)); - debug(9, "CP_PUSH_DEREFERENCED_STRUCTURE: %d => %p", parameter, ptr); + debug(9, "CP_PUSH_DEREFERENCED_STRUCTURE: %d => %p", parameter, (void *)ptr); break; case CP_POP_LOCAL_VAR32: // Pop a value into a local word variable diff --git a/engines/sword2/memory.cpp b/engines/sword2/memory.cpp index 391983930d..593bb672b6 100644 --- a/engines/sword2/memory.cpp +++ b/engines/sword2/memory.cpp @@ -225,7 +225,7 @@ void MemoryManager::memFree(byte *ptr) { int16 idx = findExactPointerInIndex(ptr); if (idx == -1) { - warning("Freeing non-allocated pointer %p", ptr); + warning("Freeing non-allocated pointer %p", (void *)ptr); return; } |