summaryrefslogtreecommitdiff
path: root/src/lib/edid.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-06-18 23:52:26 +0200
committerRonald G. Minnich <rminnich@gmail.com>2013-06-19 01:58:29 +0200
commit0ea3664bc30f81fbeb9d2ce9b7ca1e83e788aa23 (patch)
tree2aef03104834d8380ec356a731b978adf5c5f778 /src/lib/edid.c
parent354066e1179e2c3ca14c5b1216d3a565fb6da813 (diff)
downloadcoreboot-0ea3664bc30f81fbeb9d2ce9b7ca1e83e788aa23.tar.xz
edid: fix warning
src/lib/edid.c:1177: error: ‘y’ may be used uninitialized in this function Warning is bogus, but seems my gcc (4.4.7 as shipped by RHEL-6) isn't clever enougth to figure this on its own. So help a bit by explicitly initializing the variable. Change-Id: Ia9f966c9c0a6bd92a9f41f1a4a3c8e49f258be37 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-on: http://review.coreboot.org/3501 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/lib/edid.c')
-rw-r--r--src/lib/edid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/edid.c b/src/lib/edid.c
index 460d68dcb2..a794489aa0 100644
--- a/src/lib/edid.c
+++ b/src/lib/edid.c
@@ -1174,7 +1174,7 @@ int decode_edid(unsigned char *edid, int size, struct edid *out)
printk(BIOS_SPEW, "Standard timings supported:\n");
for (i = 0; i < 8; i++) {
uint8_t b1 = edid[0x26 + i * 2], b2 = edid[0x26 + i * 2 + 1];
- unsigned int x, y, refresh;
+ unsigned int x, y = 0, refresh;
if (b1 == 0x01 && b2 == 0x01)
continue;