snprintf warnings

Daniel Jacobowitz drow@false.org
Wed Nov 17 23:08:00 GMT 2004


On Tue, Nov 16, 2004 at 06:53:48AM +0200, Eli Zaretskii wrote:
> > Date: Mon, 15 Nov 2004 19:36:45 -0500
> > From: Andrew Cagney <cagney@gnu.org>
> > Cc: gdb@sources.redhat.com
> > 
> > include/libiberty.h, for instance:
> > 
> > > #if !HAVE_DECL_ASPRINTF
> > > /* Like sprintf but provides a pointer to malloc'd storage, which must
> > >    be freed by the caller.  */
> > > 
> > > extern int asprintf PARAMS ((char **, const char *, ...)) ATTRIBUTE_PRINTF_2;
> > > #endif
> 
> So you are saying that we should add some configury stuff to produce
> HAVE_DECL_SNPRINTF, and then add a fragment similar to the above to
> libiberty.h that specifies the prototype for snprintf, yes?

Yes, that sounds like a good idea.

-- 
Daniel Jacobowitz



More information about the Gdb mailing list