aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-05-12 15:42:03 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-12 15:42:03 -0700
commit60b8ae05578e3cfd04e9398b67c6f3f11fdd8918 (patch)
treeee7e8bae2d4427b2b258a53359d41f45aba7f19b
parent9b9087c159bc9eccbb55c1cc4e71228fbcb86cbf (diff)
downloadsyslinux-60b8ae05578e3cfd04e9398b67c6f3f11fdd8918.tar.gz
syslinux-60b8ae05578e3cfd04e9398b67c6f3f11fdd8918.tar.xz
syslinux-60b8ae05578e3cfd04e9398b67c6f3f11fdd8918.zip
disk.c32: remove unused variable
Remove unused variable as part of -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--com32/modules/disk.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/com32/modules/disk.c b/com32/modules/disk.c
index db7f93c2..ca4b5988 100644
--- a/com32/modules/disk.c
+++ b/com32/modules/disk.c
@@ -19,13 +19,14 @@
#include <disk/errno_disk.h>
#include <disk/error.h>
-int main(int argc __attribute__ (( unused )),
- char *argv[] __attribute__ (( unused )))
+int main(int argc, char *argv[])
{
- int err;
struct driveinfo drive;
struct driveinfo *d = &drive;
+ (void)argc;
+ (void)argv;
+
openconsole(&dev_null_r, &dev_stdcon_w);
for (int disk = 0x80; disk < 0xff; disk++) {