summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2018-05-05 10:05:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2018-05-05 10:37:21 -0700
commit4f410f3ed29fdb0f98be1e01930ba1a909a36ef0 (patch)
treefb9a79e6c75d5ac227fca05e5ab381a793e00025
parent223b315a9148ec0091837f2e369bbb3ec5d49e11 (diff)
Remove unused variable whitespace
Use of it was removed in commit 275c17136006f9d, but we kept setting it anyway. Resolves gcc 7.3 warning: main.c: In function ‘getnextline’: main.c:587:10: warning: variable ‘whitespace’ set but not used [-Wunused-but-set-variable] boolean whitespace = FALSE; ^~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/main.c b/main.c
index e5cb70c..8715881 100644
--- a/main.c
+++ b/main.c
@@ -584,7 +584,6 @@ char *getnextline(struct filepointer *filep)
*eof, /* end of file pointer */
*bol; /* beginning of line pointer */
int lineno; /* line number */
- boolean whitespace = FALSE;
/*
* Fake the "-include" line files in form of #include to the
@@ -614,7 +613,6 @@ char *getnextline(struct filepointer *filep)
p++;
bol++;
}
- whitespace = TRUE;
}
if (*p == '/' && (p+1) < eof && *(p+1) == '*') {
@@ -686,7 +684,6 @@ char *getnextline(struct filepointer *filep)
--p;
}
bol = p+1;
- whitespace = FALSE;
}
}
if (*bol != '#')