c++ - Make g++ warn on uninitialized POD member variable -


is there way print warning if forget declare in ctor initialization list member pod? i'm looking through docs , can't find anything. g++-4.4 here.

you can enable -weffc++ heap of ridiculous warnings, including every single non-ctor-initialized member.

to check actual ub, use valgrind.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -