This is the mail archive of the gcc-patches@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: PATCH RFA: -Wc++-compat warning about uninitialized const variables


On Thu, 18 Jun 2009, Ian Lance Taylor wrote:

> C++ requires that const variables be initialized.  C does not--it
> permits them to be initialized to zero by default.  This patch
> improves the -Wc++-compat warning to warn about uninitialized const
> variables.  It also fixes the two cases in the gcc source code where
> such cases occur.  This patch requires approval from the C frontend
> maintainers.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu.  OK for mainline?

The C changes are OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


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