From d212d91dad2fdc3f30b79d90fca763659ac23307 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 6 Dec 2022 17:24:15 -0800 Subject: find_includes: rename variables to avoid shadowing global MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'parse.c') 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: -- cgit v1.2.1