]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: fix compiler warning
authorKarel Zak <kzak@redhat.com>
Mon, 21 Feb 2011 16:06:26 +0000 (17:06 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Feb 2011 16:06:26 +0000 (17:06 +0100)
cfdisk.c: In function ‘menuUpdate’:
cfdisk.c:1034:25: warning: unused variable ‘ymargin’

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/cfdisk.c

index d4a1b337a13d281ac34a60142b1af63e45df6b68..7b7172169575f03995f79ce8f1c799b9b9bae7ff 100644 (file)
@@ -1031,7 +1031,7 @@ struct MenuItem
 static int
 menuUpdate( int y, int x, struct MenuItem *menuItems, int itemLength,
            char *available, int menuType, int current ) {
-    int i, lmargin = x, ymargin = y;
+    int i, lmargin = x;
     char *mcd;
 
     /* Print available buttons */