PR7651: move uninitializable member warning to -Wuninitialized
Manuel López-Ibáñez
lopezibanez@gmail.com
Wed Aug 6 16:08:00 GMT 2008
Now that -Wuninitialized is enabled independently of optimization
level, this patch implements the suggestion of Gabriel Does Reis to
move this particular warning from -Wextra to -Wuninitialized, thus
helping towards the goal of defining -Wextra strictly in terms of
other warning flags (PR7651).
http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01843.html
Bootstrapped and regression tested on x86_64-pc-linux-gnu wit
--enable-languages=all.
OK for trunk?
2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 7651
* doc/invoke.texi (-Wextra): Move warning from here...
(-Wuninitialized): ... to here.
cp/
* class.c (check_bases_and_members): Warn with -Wuninitialized
instead of -Wextra.
testsuite/
* g++.dg/warn/Wuninitializable-member.C: New.
* g++.dg/warn/Wuninitializable-member-no.C: New.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: add-wuninitializable-member.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080806/e0d699c1/attachment.ksh>
More information about the Gcc-patches
mailing list