On Wed, Mar 30, 2016 at 07:50:33PM +0200, Jenkins Build Host wrote:
> See <http://jenkins.xeni.kraxel.org:8080/job/seabios/220/changes>
> 
> Changes:
> 
> [kevin] Support for booting from LSI Logic LSI53C1030, SAS1068, SAS1068e
[...]
>   Compile checking out/src/hw/mpt-scsi.o
> src/hw/mpt-scsi.c: In function 'init_mpt_scsi':
> src/hw/mpt-scsi.c:281:5: error: 'for' loop initial declarations are only 
> allowed in C99 mode
>      for (int i = 0; i < 7; i++)
>      ^
> src/hw/mpt-scsi.c:281:5: note: use option -std=c99 or -std=gnu99 to compile 
> your code
> make: *** [out/src/hw/mpt-scsi.o] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.YLsXMX (%build)

It's interesting that newer compilers accept the 'int i' declaration
inside of for loops - I didn't realize that was allowed in C99.  In
any case, I pulled the declaration outside the loop to suppress the
error, and I committed the change.

-Kevin

_______________________________________________
SeaBIOS mailing list
SeaBIOS@seabios.org
https://www.coreboot.org/mailman/listinfo/seabios

Reply via email to