From 7afe74bd735c7c65880871bb017f3c089e375bc8 Mon Sep 17 00:00:00 2001 From: jesusc Date: Wed, 16 Jul 2003 16:16:16 +0000 Subject: [PATCH] Fixed some gcc warnings git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2740 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- as/mcs51/lklibr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) { -- 2.30.2