This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suppressing specific compiler warnings
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: llewelly at xmission dot com
- Cc: pinskia at physics dot uc dot edu (Andrew Pinski), shebs at apple dot com (Stan Shebs), dewar at gnat dot com (Robert Dewar), dutta at india dot hp dot com (Banibrata Dutta), gcc at gcc dot gnu dot org, rmathew at gmail dot com ('Ranjit Mathew')
- Date: Thu, 27 May 2004 17:11:20 -0400 (EDT)
- Subject: Re: Suppressing specific compiler warnings
> GCC has a few warning flags, such as -Weffc++, whose utility is
> strongly dependent on the style the code is written in, and a few
> others, such as -Wunitialized, which are usually desireable, but
> sometimes need to be turned off when one has an unusual need, such
> as avoid unecessary initialization of a multi-megabyte array which
> is going to be filled with input.
But -Wuninitialized does not warn for arrays. Also I was talking about
turning off warnings in the source it self rather than by flags.
Thanks,
Andrew Pinski