summaryrefslogtreecommitdiff
path: root/dmake
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-03 12:49:18 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:52 +0200
commit347367d14ac8e3d7c25aaf50cc72593212d27f26 (patch)
tree919af43fbe0bdf78f2e3ba7dda12bf61aec03369 /dmake
parent8fc65666ea32241f192eda8f8e4eb11e90c5fca3 (diff)
cppcheck scope reduction in dmake/infer.c
Diffstat (limited to 'dmake')
-rw-r--r--dmake/infer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmake/infer.c b/dmake/infer.c
index 02682bc16f19..9f160d3ced92 100644
--- a/dmake/infer.c
+++ b/dmake/infer.c
@@ -401,7 +401,6 @@ ICELLPTR *nnmp;
int ipush = 0; /* flag for push on inferred prereq */
char *name = NIL(char); /* prerequisite name */
CELLPTR meta = edge->cl_prq;
- int dmax_fix;
int trans;
int noinf;
int exists;
@@ -428,6 +427,7 @@ ICELLPTR *nnmp;
if( name ) {
/* Build the prerequisite name from the %-meta prerequisite given
* for the %-meta rule. */
+ int dmax_fix;
iprqh.ht_name = buildname( ic->ic_name, name, pdfa->dl_per );
if((dmax_fix = (count_dots(name)-count_dots(meta->CE_NAME))) < 0)
dmax_fix = 0;