This is the mail archive of the
mailing list for the GCC project.
Re: Criteria for a warning to be in -Wall? (was: Re: a warning to implement)
- From: dewar at gnat dot com (Robert Dewar)
- To: gcc at gcc dot gnu dot org, robertlipe at usa dot net
- Date: Wed, 6 Feb 2002 19:12:04 -0500 (EST)
- Subject: Re: Criteria for a warning to be in -Wall? (was: Re: a warning to implement)
<<I'd have a strong preference for something that doesn't rely on GCC
extension. __attribute((unused)) is just as icky in a portable project
as magic /* ARGSUNUSED */ comments recognized by others.
Sure, that's understandable, but using
int a = a;
on the grounds that, even though there is no guarantee, it just happens
to work, is to me the antithesis of writing clean portable code!