From 7942cea7bfeb130ce6ba4eb3a786beed371ec559 Mon Sep 17 00:00:00 2001 From: jesusc Date: Sun, 24 Aug 2003 00:07:07 +0000 Subject: [PATCH] Fixed gcc warning git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2849 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- as/mcs51/lklibr.c | 1 + link/z80/lklibr.c | 1 + 2 files changed, 2 insertions(+) diff --git a/as/mcs51/lklibr.c b/as/mcs51/lklibr.c index 07028e79..32c22d57 100644 --- a/as/mcs51/lklibr.c +++ b/as/mcs51/lklibr.c @@ -661,6 +661,7 @@ int fndsym( char *name ) /* Iterate through all library object files */ ThisLibr = libr.next; + FirstFound = libr.next; /*So gcc stops whining*/ while (ThisLibr) { /* Iterate through all symbols in an object file */ diff --git a/link/z80/lklibr.c b/link/z80/lklibr.c index 6a9b455b..be82f7bc 100644 --- a/link/z80/lklibr.c +++ b/link/z80/lklibr.c @@ -527,6 +527,7 @@ int fndsym( char *name ) /* Iterate through all library object files */ ThisLibr = libr.next; + FirstFound = libr.next; /*So gcc stops whining*/ while (ThisLibr) { /* Iterate through all symbols in an object file */ -- 2.39.2