Re: [PATCH] Fix error: 'previous' may be used uninitialized in this function

2011-05-16 Thread Laurynas Biveinis
> 2011-05-15  Dmitry Gorbachev   > >        * gengtype-state.c (read_state_param_structs): Initialize "previous". The logic in the function is OK, is this to silence some false positive warning? In any case, the patch is OK, I assume you have tested it. Thanks, -- Laurynas

[PATCH] Fix error: 'previous' may be used uninitialized in this function

2011-05-15 Thread Dmitry Gorbachev
2011-05-15 Dmitry Gorbachev * gengtype-state.c (read_state_param_structs): Initialize "previous". --- gcc/gengtype-state.c +++ gcc/gengtype-state.c @@ -2137,7 +2137,7 @@ read_state_param_structs (type_p *param_structs) int nbparamstructs = 0; int countparamstructs = 0; type_p