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: [PATCH] sim: update device_error() prototype


On Monday 29 March 2010 17:32:33 Eli Zaretskii wrote:
> > From: Mike Frysinger <vapier@gentoo.org>
> > Date: Mon, 29 Mar 2010 16:39:06 -0400
> > 
> > -void device_error (device *me, char* message, ...);
> > +void device_error (device *me, const char *message, ...)
> > __attribute__((format (printf, 2, 3)));
> 
> Is this always compiled only with GCC?  __attribute__ is a GCC
> specific feature, AFAIK.

i didnt worry about it because a lot of places in sim/common/ are using the 
printf format attribute unconditionally.  if this really was a problem for 
people, then they'd already be broken and have more work to clean up.  i'm 
assuming this isnt a realistic problem because it hasnt been reported and/or a 
patch posted.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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