> -----Original Message----- > From: Øyvind Harboe [mailto:[email protected]] > Sent: woensdag 23 september 2009 9:16 > To: Nico Coesel > Cc: [email protected] > Subject: Re: [Openocd-development] Some variable initialisation and > typecasting patches > > On Tue, Sep 22, 2009 at 9:18 AM, Nico Coesel <[email protected]> wrote: > > Hello all, > > I had some problems (warnings) to get OpenOCD to compile with gcc 4.x on > > a MIPS platform. Attached you'll the patches with the modifications > > required to get it to compile without warnings. I'm wondering why these > > didn't turn up earlier. Is everyone still using gcc 3.x? Or is the x86 > > version of gcc 4.x much more relaxed? > > > I've committed at91sam3.c and jim.c changes. > > The other two patches looked like they just eliminated a local variable?
Indeed. Not having the local variable may make it easier for the compiler to decide to actually inline the functions. Perhaps they could even be turned into defines. Nico Coesel _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
