From: jesusc Date: Wed, 16 Jul 2003 16:16:16 +0000 (+0000) Subject: Fixed some gcc warnings X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7afe74bd735c7c65880871bb017f3c089e375bc8;p=fw%2Fsdcc Fixed some gcc warnings git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2740 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/as/mcs51/lklibr.c b/as/mcs51/lklibr.c index c4006102..d0d6c23e 100644 --- a/as/mcs51/lklibr.c +++ b/as/mcs51/lklibr.c @@ -25,6 +25,7 @@ #include #endif #include +#include #include #include "aslink.h" @@ -359,11 +360,10 @@ embedded in the library file.*/ int SdccLib(char * PathLib, FILE * libfp, char * DirLib, char * SymName) { struct lbfile *lbfh, *lbf; - char name[NCPS]=""; char ModName[NCPS]=""; char FLine[MAXLINE+1]; int state=0; - long IndexOffset, FileOffset; + long IndexOffset=0, FileOffset; while(!feof(libfp)) {