[coreboot] [flashrom][PATCH] invalid local variable declaration

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Tue Jun 23 12:39:51 CEST 2009

On 23.06.2009 12:32, Stefan Reinauer wrote:
> stephan.guilloux at free.fr wrote:
>> To start teh day, a small patch for an invalid local variable...
>> In C, local variable must be declared before any statment, and not, like in C++
>> in the middle of the function.
> Thanks a lot for the patch!
> The restriction of local variable declarations only working at the top
> of the function has been revised in the C99 standard. Every compiler
> that is C99 compliant will understand the code and do the right thing.

Still, on oddball platforms there may be no C99 compliant compilers. I
tend to apply this patch, but I don't feel strongly about it.



More information about the coreboot mailing list