aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorD G Turner2017-01-10 06:14:03 +0000
committerD G Turner2017-01-10 06:14:03 +0000
commit26452df85566fe1ffc8555003fdfdd6456b59a7e (patch)
tree858abdce83bf6a1492ef1f1bc2dee545fccae0fa /engines/sci
parentdf84aee6a30bf1e2e652f0dfc6fa54aa95b1091d (diff)
downloadscummvm-rg350-26452df85566fe1ffc8555003fdfdd6456b59a7e.tar.gz
scummvm-rg350-26452df85566fe1ffc8555003fdfdd6456b59a7e.tar.bz2
scummvm-rg350-26452df85566fe1ffc8555003fdfdd6456b59a7e.zip
SCI: Fix Unused Variable Compiler Warning when SCI32 is not enabled.
The bytesWritten variable is not used if SCI32 is not enabled. Fixed by adding this and success flag to the debug console print.
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kfile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 796eb08450..9d74ed174d 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -526,7 +526,6 @@ reg_t kFileIOWriteRaw(EngineState *s, int argc, reg_t *argv) {
uint bytesWritten = 0;
bool success = false;
s->_segMan->memcpy((byte *)buf, argv[1], size);
- debugC(kDebugLevelFile, "kFileIO(writeRaw): %d, %d", handle, size);
FileHandle *f = getFileFromHandle(s, handle);
if (f) {
@@ -534,6 +533,8 @@ reg_t kFileIOWriteRaw(EngineState *s, int argc, reg_t *argv) {
success = !f->_out->err();
}
+ debugC(kDebugLevelFile, "kFileIO(writeRaw): %d, %d (%d, %d)", handle, size, bytesWritten, success);
+
delete[] buf;
#ifdef ENABLE_SCI32