This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Criteria for a warning to be in -Wall? (was: Re: a warning toimplement)


>>> "Robert" == Robert Lipe <robertlipe@usa.net> writes:

 >> <<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!

 Robert> I hear you and it annoys me, too.

 Robert> So show us another alternative to shut up the warning
 Robert> with zero runtime cost that is still portable code.

(void) a;  ?

[...]
-- 
Alexandre Duret-Lutz


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