This is the mail archive of the gdb-patches@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: [libiberty] Add ARG_UNUSED as a C++-friendly replacement for ATTRIBUTE_UNUSED


On Tue, Jul 13, 2004 at 09:50:36AM +0200, Bernardo Innocenti wrote:
> define ARG_UNUSED(T,N) to "T N").

If we do this, I'd prefer

	T ARG_UNUSED(N)

#ifdef __cplusplus
# define ARG_UNUSED(N)
#elif somegccversion
# define ARG_UNUSED(N)	N ATTRIBUTE_UNUSED
#else
# define ARG_UNUSED(N)	N
#endif


r~


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