From 6f6a74d526226a74aaf274234ac0b73a6a86875b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 9 Nov 2009 19:15:50 -0500 Subject: [PATCH] Fix compiler warning in setup_translation(). Assign 'desc' just to silence compiler warning. --- src/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5