From: uz Date: Mon, 31 Aug 2009 17:15:59 +0000 (+0000) Subject: Fixed a few C99isms that prevented the sources to compile with Watcom-C. X-Git-Tag: V2.13.0rc1~157 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b3f3b21f80d216b08494caf158d7415782c61c8c;p=cc65 Fixed a few C99isms that prevented the sources to compile with Watcom-C. git-svn-id: svn://svn.cc65.org/cc65/trunk@4099 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeopt.c b/src/cc65/codeopt.c index abd5fdb63..422496792 100644 --- a/src/cc65/codeopt.c +++ b/src/cc65/codeopt.c @@ -101,12 +101,13 @@ static unsigned OptShift1 (CodeSeg* S) */ { unsigned Changes = 0; + unsigned I; /* Generate register info */ CS_GenRegInfo (S); /* Walk over the entries */ - unsigned I = 0; + I = 0; while (I < CS_GetEntryCount (S)) { CodeEntry* N; diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index 95022e6c1..21607d0d6 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -805,12 +805,13 @@ unsigned OptCondBranches2 (CodeSeg* S) */ { unsigned Changes = 0; + unsigned I; /* Generate register info for this step */ CS_GenRegInfo (S); /* Walk over the entries */ - unsigned I = 0; + I = 0; while (I < CS_GetEntryCount (S)) { CodeEntry* N;