summaryrefslogtreecommitdiff
path: root/src/vendorcode/Makefile.inc
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2016-11-27 22:17:44 +0100
committerMartin Roth <martinroth@google.com>2016-11-29 17:21:30 +0100
commit533a3859c8306772e585a734361bc2f0b242c075 (patch)
treed5337b3b57e0b9aa7beb5d28c46c96077855e73d /src/vendorcode/Makefile.inc
parent2966c9958985ed5a856f9aa6cfdb6dfa45ea8bf9 (diff)
nb/intel/i945/gma: Declare count variable outside 'for' loop
Building an image for the Lenovo X60 on Debian 8.5 (jessie) with GCC 4.9.2, compilation fails with the error below. ``` $ gcc --version gcc (Debian 4.9.2-10) 4.9.2 […] $ make # lenovo/x60 with native graphics initialization […] CC ramstage/northbridge/intel/i945/gma.o src/northbridge/intel/i945/gma.c: In function 'probe_edid': src/northbridge/intel/i945/gma.c:570:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < 8; i++) { ^ src/northbridge/intel/i945/gma.c:570:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code Makefile:316: recipe for target 'build/ramstage/northbridge/intel/i945/gma.o' failed make: *** [build/ramstage/northbridge/intel/i945/gma.o] Error 1 ``` Fix this by declaring the count variable outside the 'for' loop. Change-Id: Icf69337ee46c86bafc4e1320fd99f8f8f5155bfe Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: https://review.coreboot.org/17623 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/vendorcode/Makefile.inc')
0 files changed, 0 insertions, 0 deletions