coreboot-kgpe-d16/src/northbridge/intel
Paul Menzel 533a3859c8 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>
2016-11-29 17:21:30 +01:00
..
common spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
e7505 nb/intel: Fix some spelling mistakes in comments and strings 2016-11-21 23:43:54 +01:00
fsp_rangeley northbridge/intel/fsp_rangeley: Add space around operators 2016-09-20 17:38:01 +02:00
fsp_sandybridge intel FSP sandy/ivy: Move select MMCONF_SUPPORT 2016-11-22 04:14:49 +01:00
gm45 nb/gm45/gma.c: Compute BLC_PWM_CTL value from PWM frequency 2016-11-28 19:24:12 +01:00
haswell Remove explicit select MMCONF_SUPPORT 2016-11-22 04:15:11 +01:00
i440bx nb/intel: Fix some spelling mistakes in comments and strings 2016-11-21 23:43:54 +01:00
i855 nb/intel: Fix some spelling mistakes in comments and strings 2016-11-21 23:43:54 +01:00
i945 nb/intel/i945/gma: Declare count variable outside 'for' loop 2016-11-29 17:21:30 +01:00
i3100 nb/intel: Fix some spelling mistakes in comments and strings 2016-11-21 23:43:54 +01:00
i5000 northbridge/intel/i5000: Convert 'for(;;)' to 'die' 2016-11-23 23:57:46 +01:00
i82810 nb/intel/i82810: Make sure DIMM size isn't negative 2016-11-24 00:11:12 +01:00
i82830 nb/intel: Fix some spelling mistakes in comments and strings 2016-11-21 23:43:54 +01:00
nehalem Remove explicit select MMCONF_SUPPORT 2016-11-22 04:15:11 +01:00
pineview Remove explicit select MMCONF_SUPPORT 2016-11-22 04:15:11 +01:00
sandybridge nb/intel/sandybridge/raminit: Support CL > 11 2016-11-29 17:16:14 +01:00
x4x nb/intel/x4x/raminit: Fix DIMM_IN_CHANNEL calculation 2016-11-28 17:56:34 +01:00