This is the mail archive of the gcc-help@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]

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


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