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
Post a Comment