Fix various warnings
This commit is contained in:
1 parent
549b686e22
commit
f976711fb4
58 files changed
+384
-425
No files matched your search
@@ -356,7 +356,7 @@ int PS_ReadWhiteSpace(script_t *script)
|
||||
//============================================================================
|
||||
int PS_ReadEscapeCharacter(script_t *script, char *ch)
|
||||
{
|
||||
int c, val, i;
|
||||
int c, val;
|
||||
|
||||
//step over the leading '\\'
|
||||
script->script_p++;
|
||||
@@ -377,7 +377,7 @@ int PS_ReadEscapeCharacter(script_t *script, char *ch)
|
||||
case 'x':
|
||||
{
|
||||
script->script_p++;
|
||||
for (i = 0, val = 0; ; i++, script->script_p++)
|
||||
for (val = 0; ; script->script_p++)
|
||||
{
|
||||
c = *script->script_p;
|
||||
if (c >= '0' && c <= '9') c = c - '0';
|
||||
@@ -398,7 +398,7 @@ int PS_ReadEscapeCharacter(script_t *script, char *ch)
|
||||
default: //NOTE: decimal ASCII code, NOT octal
|
||||
{
|
||||
if (*script->script_p < '0' || *script->script_p > '9') ScriptError(script, "unknown escape char");
|
||||
for (i = 0, val = 0; ; i++, script->script_p++)
|
||||
for (val = 0; ; script->script_p++)
|
||||
{
|
||||
c = *script->script_p;
|
||||
if (c >= '0' && c <= '9') c = c - '0';
|
||||
|
||||
Reference in new issue
Block a user