[PATCH util/makedepend 2/3] Remove unused variable whitespace
Alan Coopersmith
alan.coopersmith at oracle.com
Sat May 5 18:11:57 UTC 2018
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 at oracle.com>
---
main.c | 3 ---
1 file changed, 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 != '#')
--
2.15.0
More information about the xorg-devel
mailing list