Re: unused variable warning

2005-08-29 Thread skaller
On Mon, 2005-08-29 at 01:00 -0700, Ian Lance Taylor wrote: > skaller <[EMAIL PROTECTED]> writes: > > > In gcc/g++ version 4.0 there is no way to turn off the > > unused variable warning enabled by -Wall with a command > > line switch. > > How about -Wno-un

Re: unused variable warning

2005-08-29 Thread Ian Lance Taylor
skaller <[EMAIL PROTECTED]> writes: > In gcc/g++ version 4.0 there is no way to turn off the > unused variable warning enabled by -Wall with a command > line switch. How about -Wno-unused-variable? > I think this is a bug: it should be possible to selectively > turn on or

unused variable warning

2005-08-28 Thread skaller
In gcc/g++ version 4.0 there is no way to turn off the unused variable warning enabled by -Wall with a command line switch. I think this is a bug: it should be possible to selectively turn on or off all warnings (on the command line). The advice in the documentation is to attach __attribute__

Re: How to get unused variable warning for non-PODs

2005-02-23 Thread Joe Buck
On Wed, Feb 23, 2005 at 10:14:22AM +0100, "Richter, Jörg" wrote: > I want to know if its possible to get warnings for unused variables that > have a user defined constructor and/or destructor. > I know that they are side-effect free and want to mark them for the > compiler. But neither attribute

How to get unused variable warning for non-PODs

2005-02-23 Thread "Richter, Jörg"
Hi, I want to know if its possible to get warnings for unused variables that have a user defined constructor and/or destructor. I know that they are side-effect free and want to mark them for the compiler. But neither attribute const nor pure helped me here. Btw: std::string would be IMO a good