summaryrefslogtreecommitdiffstats
path: root/rsc/source/rscpp/cpp3.c
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-02 15:49:43 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:47 +0200
commit0921457488898b43152e33d1184929f7436aeeb4 (patch)
tree0c155119ff6ff80148013080598df085448321a5 /rsc/source/rscpp/cpp3.c
parentcppcheck reduce scope of var in rsc/...rscclass.cxx (diff)
downloadcore-0921457488898b43152e33d1184929f7436aeeb4.tar.gz
core-0921457488898b43152e33d1184929f7436aeeb4.zip
cppcheck reduce scope of var in rsc/...cpp3.c/cpp4.c/cpp6.c
Diffstat (limited to 'rsc/source/rscpp/cpp3.c')
-rw-r--r--rsc/source/rscpp/cpp3.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/rsc/source/rscpp/cpp3.c b/rsc/source/rscpp/cpp3.c
index 7f9c8adbaf8d..b9ed7a9e1af1 100644
--- a/rsc/source/rscpp/cpp3.c
+++ b/rsc/source/rscpp/cpp3.c
@@ -449,7 +449,6 @@ void initdefines()
register char **pp;
register char *tp;
register DEFBUF *dp;
- int i;
time_t tvec;
#if !defined( WNT ) && !defined(G3)
@@ -476,8 +475,10 @@ void initdefines()
* notices this and calls the appropriate routine.
* DEF_NOARGS is one greater than the first "magic" definition.
*/
- if (nflag < 2) {
- for (pp = magic, i = DEF_NOARGS; *pp != NULL; pp++) {
+ if (nflag < 2)
+ {
+ int i = DEF_NOARGS;
+ for (pp = magic; *pp != NULL; pp++) {
dp = defendel(*pp, FALSE);
dp->nargs = --i;
}