27 Dec
2012
27 Dec
'12
5:42 p.m.
On Mon, Dec 24, 2012 at 03:55:38PM -0200, Fabio Estevam wrote:
- u16 reg_l, reg_r, dcs_cfg, dcs_reg;
- u16 reg_l = 0, reg_r = 0, dcs_cfg, dcs_reg;
No, this is a terrible idea. Apart from the coding style thing all you're doing here is just ensuring that a value is set in the variable without any analysis saying that this is a sensible value to set or that the compiler hasn't spotted a genuine issue.
There's also the possibility that the compiler is just buggy...