From: Kevin O'Connor Date: Tue, 10 Nov 2009 00:15:50 +0000 (-0500) Subject: Fix compiler warning in setup_translation(). X-Git-Tag: rel-0.5.0~42 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6f6a74d526226a74aaf274234ac0b73a6a86875b;p=seabios.git Fix compiler warning in setup_translation(). Assign 'desc' just to silence compiler warning. --- diff --git a/src/block.c b/src/block.c index 0a65ae6..d36ad36 100644 --- a/src/block.c +++ b/src/block.c @@ -86,7 +86,7 @@ setup_translation(struct drive_s *drive_g) u16 cylinders = GET_GLOBAL(drive_g->pchs.cylinders); u16 spt = GET_GLOBAL(drive_g->pchs.spt); u64 sectors = GET_GLOBAL(drive_g->sectors); - const char *desc; + const char *desc = NULL; switch (translation) { default: