------- Comment #1 from jwakely dot gcc at gmail dot com 2010-01-14 12:36 ------- (In reply to comment #0)
> vec_t tmp2 = {}; // Causes warnings about uninitialized members in > myvec The warning doesn't smean it's uninitialized, just that there are not initializers present for all members: -Wmissing-field-initializers Warn if a structure's initializer has some fields missing. For example, the following code would cause such a warning, because "x.h" is implicitly zero: struct s { int f, g, h; }; struct s x = { 3, 4 }; You can disable that with -Wno-missing-field-initializers (but that doesn't help for cases where vec_t cannot be aggregate initialized) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42743