Ethereal-dev: Re: [Ethereal-dev] gcc warnings about unused variables

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Sun, 17 Feb 2002 15:31:04 +0100
On Sat, Feb 16, 2002 at 10:06:51AM +1100, Hamish Moffatt wrote:
> On Fri, Feb 15, 2002 at 04:34:48PM +0100, Joerg Mayer wrote:
> > +  CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
> 
> Will this work with Visual C++, used to build on Windows?

Actually, what I do on everything that's not gcc is
+  CFLAGS="-D_U_=\"\" $CFLAGS"
so it define it to "go away and don't bother the actual compiler with it".

What I don't know is whether this is something that is the same on
all compilers or not. I case it isn't, I won't be able to do this
via commandline options but vie config.h, which would require me to
include config.h into every file that needs _U_
Does anyone use a compiler that doesn't allow me to -D_U_=""?

   Ciao
                      Jï¿œrg
--
Joerg Mayer                                          <jmayer@xxxxxxxxx>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.