From 52cb52799203401036d431188e60599e9b0de4ac Mon Sep 17 00:00:00 2001 From: epetrich Date: Thu, 14 Apr 2005 13:42:22 +0000 Subject: [PATCH] * src/mcs51/gen.c (genEndFunction): removed unused variable to fix gcc warning. * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to fix sdcpp warnings. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3736 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 7 +++++++ device/lib/Makefile.in | 2 +- src/mcs51/gen.c | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 509b8818..fa28a354 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-04-14 Erik Petrich + + * src/mcs51/gen.c (genEndFunction): removed unused variable to fix + gcc warning. + * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to + fix sdcpp warnings. + 2005-04-12 Maarten Brock * device/include/malloc.h: removed redundant __reentrant prototypes diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index 376a56bb..f64c2bf7 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -15,7 +15,7 @@ CP = @CP@ PRJDIR = ../.. INCDIR = $(PRJDIR)/device/include ifndef PORTINCDIR -PORTINCDIR = $(INCDIR) +PORTINCDIR = $(INCDIR)/mcs51 endif CC = $(PRJDIR)/bin/sdcc diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index 003afdfa..2a20db2b 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -3058,7 +3058,6 @@ genEndFunction (iCode * ic) bitVect *regsUsed; bitVect *regsUsedPrologue; bitVect *regsUnneeded; - int accIsFree = sym->recvSize < 4; int idx; _G.currentFunc = NULL; -- 2.30.2