This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA record/replay] cast to avoid compiler warning


> Date: Sun, 05 Oct 2008 11:25:57 -0700
> From: Michael Snyder <msnyder@vmware.com>
> 
> Daniel Jacobowitz wrote:
> > On Sun, Oct 05, 2008 at 08:44:38AM -0700, Michael Snyder wrote:
> >> Yes, but we don't know that gdb will always be built using gnulib.
> > 
> > Gnulib is a library of portability replacement routines that GDB can
> > import.  We already use it for stdint.h and memchr / memmem.  We could
> > easily add it for further routines.
> 
> OK.  So, would you favor using the "%zd" modifier instead of a cast?
> 
> I mainly didn't do that because there were no existing instances
> of it in gdb now, but I was just being conservative...

We still only require ISO C90 to build GDB, so we shouldn't use %zd.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]