From: borutr Date: Wed, 13 Feb 2008 17:56:02 +0000 (+0000) Subject: fixed warnings, produced with last commit X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=805c6d9139ff7b10562efd703bb4e5fdfd6736a5;p=fw%2Fsdcc fixed warnings, produced with last commit git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5006 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 30ec7d65..2f73b572 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -1549,30 +1549,6 @@ emitOverlay (struct dbuf_s * aBuf) } } - -/*-----------------------------------------------------------------*/ -/* spacesToUnderscores - replace spaces with underscores */ -/*-----------------------------------------------------------------*/ -static char * -spacesToUnderscores (char *dest, const char *src, size_t len) -{ - unsigned int i; - char *p; - - assert(dest != NULL); - assert(src != NULL); - assert(len > 0); - - --len; - for (p = dest, i = 0; *src != '\0' && i < len; ++src, ++i) { - *p++ = isspace((unsigned char)*src) ? '_' : *src; - } - *p = '\0'; - - return dest; -} - - /*-----------------------------------------------------------------*/ /* glue - the final glue that hold the whole thing together */ /*-----------------------------------------------------------------*/ @@ -1582,7 +1558,6 @@ glue (void) struct dbuf_s vBuf; struct dbuf_s ovrBuf; FILE *asmFile; - char moduleBuf[PATH_MAX]; int mcs51_like; dbuf_init (&vBuf, 4096);