This is the mail archive of the
mailing list for the binutils project.
Re: [libiberty] Add ARG_UNUSED as a C++-friendly replacement forATTRIBUTE_UNUSED
- From: Bernardo Innocenti <bernie at develer dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com, ian at wasabisystems dot com
- Date: Tue, 13 Jul 2004 10:05:12 +0200
- Subject: Re: [libiberty] Add ARG_UNUSED as a C++-friendly replacement forATTRIBUTE_UNUSED
- Organization: Develer S.r.l.
- References: <40F1D2BD.email@example.com> <200407121909.i6CJ9Hxj021491@greed.delorie.com>
DJ Delorie wrote:
> This implementation doesn't address K&R style argument lists, although
> that's soon to be a moot point ;-)
Anyway, I think there's no way to get something like this to work:
foo (a, b, dummy)
ARG_UNUSED (int, dummy);
> I'd also prefer this definition to be right after the ATTRIBUTE_UNUSED
> definition, rather than randomly added to the end of the file.
> However, I'm not convinced we need this yet. By the time we require a
> C++ compiler, 3.4.0 will be old enough to require that version.
So we won't be able to bootstrap from third-party C++ compilers?
The ATTRIBUTE_UNUSED macro cannot be made to work with MSVC, CW
or other popular compilers.
Not that I care that much: on any supported host you can always
install an older version of GCC or cross-compile from another host.
// Bernardo Innocenti - Develer S.r.l., R&D dept.