This is the mail archive of the gdb@sources.redhat.com 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: removes trivial compilation warning


On Mon, Mar 17, 2003 at 02:36:03PM -0500, Daniel Jacobowitz wrote:
> On Mon, Mar 17, 2003 at 08:19:38PM +0100, Joerg Beyer wrote:
> > This fixes a trivial warning:
> > 
> > gdb/gdbserver/gdbreplay.c gives a warning, because atoi is
> > not declared. The inlcude of stdlib.h fixes this:
> > 
> >     Joerg
> > 
> > diff -c src_orig/gdb/gdbserver/gdbreplay.c src/gdb/gdbserver/gdbreplay.c
> > *** src_orig/gdb/gdbserver/gdbreplay.c  2002-07-09 19:38:58.000000000 +0200
> > --- src/gdb/gdbserver/gdbreplay.c       2003-03-17 19:53:38.000000000 +0100
> > ***************
> > *** 30,35 ****
> > --- 30,36 ----
> >   #include <ctype.h>
> >   #include <fcntl.h>
> >   #include <errno.h>
> > + #include <stdlib.h>
> > 
> >   #ifdef HAVE_STDLIB_H
> >   #include <stdlib.h> 
> 
> Look down a line in your patch.  Is HAVE_STDLIB_H not getting defined?

No, it wasn't.  I've fixed this in CVS.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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