Fixed gcc warning
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 24 Aug 2003 00:07:07 +0000 (00:07 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 24 Aug 2003 00:07:07 +0000 (00:07 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2849 4a8a32a2-be11-0410-ad9d-d568d2c75423

as/mcs51/lklibr.c
link/z80/lklibr.c

index 07028e7995395972584a98ba059407dcfe371ac3..32c22d572deac2f5c6413f49601430e2c6ae93b4 100644 (file)
@@ -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 */
index 6a9b455bc16be8da974ae531fd8f8b858e4956a6..be82f7bca79900a644ea727df81020b37e680590 100644 (file)
@@ -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 */