This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Can GCC warn unused and/or uninitialized C++ class attributes.
- From: YingLCS at netscape dot net
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 03 Jun 2003 23:06:13 -0400
- Subject: Can GCC warn unused and/or uninitialized C++ class attributes.
Hi,
Can GCC warn unused and/or uninitialized C++ class attributes?
I look at the manual, it can warns about unused paramaters and uninitialized local variables. I would like ot know if it warns about unused and/or uninitialized C++ class attributes? If yes, how to enabled it?
In C++, i can initalize attribues using member initializers or assignment in constructors. Is GCC smart enough to understand both and find out which attributes are not initialized?
I know there is an option "-Wreorder", but it only checks for order, it does not mention anything about uninitialized variables.
Thank you.
__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
Get AOL Instant Messenger 5.1 free of charge. Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455