From: uz Date: Tue, 6 Nov 2012 20:41:02 +0000 (+0000) Subject: Rearrange the code to avoid a warning from the Watcom compiler. X-Git-Tag: V2.14~152 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=38e185d15d1173c300a3a90a3283bf79cc8b5884;p=cc65 Rearrange the code to avoid a warning from the Watcom compiler. git-svn-id: svn://svn.cc65.org/cc65/trunk@5922 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/sp65/lynxsprite.c b/src/sp65/lynxsprite.c index 6fdc9fc89..7c8bb6946 100644 --- a/src/sp65/lynxsprite.c +++ b/src/sp65/lynxsprite.c @@ -82,9 +82,9 @@ static enum Mode GetMode (const Collection* A) } else { Error ("Invalid value for attribute `mode'"); } - } else { - return smAuto; } + + return smAuto; } diff --git a/src/sp65/vic2sprite.c b/src/sp65/vic2sprite.c index 9fbe06f11..d32a9cc66 100644 --- a/src/sp65/vic2sprite.c +++ b/src/sp65/vic2sprite.c @@ -83,9 +83,9 @@ static enum Mode GetMode (const Collection* A) } else { Error ("Invalid value for attribute `mode'"); } - } else { - return smAuto; - } + } + + return smAuto; }