summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-06 17:24:15 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-01 14:34:57 -0800
commitd212d91dad2fdc3f30b79d90fca763659ac23307 (patch)
treee7833eb6d0d213dce2b22e1a7576c774828affd9
parent0da7cf06cea7837f78ee53c310453a32356227b8 (diff)
downloadxorg-util-makedepend-d212d91dad2fdc3f30b79d90fca763659ac23307.tar.gz
find_includes: rename variables to avoid shadowing global
Clears gcc warning: parse.c: In function ‘find_includes’: parse.c:620:29: warning: declaration of ‘inclistp’ shadows a global declaration [-Wshadow] struct inclist *inclistp = inclistnext; ^~~~~~~~ In file included from parse.c:27:0: def.h:171:26: note: shadowed declaration is here extern struct inclist *inclistp; ^~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.c b/parse.c
index fe10c01..f3f569c 100644
--- a/parse.c
+++ b/parse.c
@@ -617,14 +617,14 @@ find_includes(struct filepointer *filep, struct inclist *file,
case INCLUDENEXT:
case INCLUDENEXTDOT:
{
- struct inclist *inclistp = inclistnext;
- const char **includedirsp = includedirsnext;
+ struct inclist *inclist_save = inclistnext;
+ const char **includedirs_save = includedirsnext;
debug(2, ("%s, reading %s, includes %s\n",
file_red->i_file, file->i_file, line));
add_include(filep, file, file_red, line, type, failOK);
- inclistnext = inclistp;
- includedirsnext = includedirsp;
+ inclistnext = inclist_save;
+ includedirsnext = includedirs_save;
}
break;
case ERROR: