aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorD G Turner2014-04-18 14:59:49 +0100
committerD G Turner2014-04-18 14:59:49 +0100
commit4598b3b2d92a75de5970d31692b0c0da14f0fb46 (patch)
tree8c243f4f30d631a98e9fb5d722df3ab274210a10 /engines/sci
parentde3f81845a33f2656003bcb8b22cc806a0d6cd5e (diff)
downloadscummvm-rg350-4598b3b2d92a75de5970d31692b0c0da14f0fb46.tar.gz
scummvm-rg350-4598b3b2d92a75de5970d31692b0c0da14f0fb46.tar.bz2
scummvm-rg350-4598b3b2d92a75de5970d31692b0c0da14f0fb46.zip
SCI: Inhibit spurious GCC warnings in script patching code.
The two relevant variables upon inspection of the current code should not be used uninitialized as per the compiler linter warning, but removing this by adding a zero initialization is simple. It is also good practice and should prevent future issues if the code is modified.
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/script_patches.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/script_patches.cpp b/engines/sci/engine/script_patches.cpp
index a405ee5c7c..b4d245197b 100644
--- a/engines/sci/engine/script_patches.cpp
+++ b/engines/sci/engine/script_patches.cpp
@@ -2668,8 +2668,8 @@ void ScriptPatcher::initSignature(const SciScriptPatcherEntry *patchTable, bool
uint16 curWord;
uint16 curCommand;
uint32 curValue;
- byte byte1;
- byte byte2;
+ byte byte1 = 0;
+ byte byte2 = 0;
int patchEntryCount = 0;
// Count entries and allocate runtime data