From 924e906c2794ce730a593c7f987dc632668a1114 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Tue, 28 Aug 2007 23:49:03 +0000 Subject: [PATCH] Remove two more warnings when building the usb stack git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14497 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usbstack/drivers/device/usb_serial.c | 1 + firmware/usbstack/drivers/device/usb_storage.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/firmware/usbstack/drivers/device/usb_serial.c b/firmware/usbstack/drivers/device/usb_serial.c index 0e6d7bf9f9..0738b9cc36 100644 --- a/firmware/usbstack/drivers/device/usb_serial.c +++ b/firmware/usbstack/drivers/device/usb_serial.c @@ -296,6 +296,7 @@ static int config_buf(uint8_t *buf, uint8_t type, unsigned index) int len; /* TODO check index*/ + (void)index; len = usb_stack_configdesc(&serial_bulk_config_desc, buf, BUFFER_SIZE, dev.descriptors); if (len < 0) { diff --git a/firmware/usbstack/drivers/device/usb_storage.c b/firmware/usbstack/drivers/device/usb_storage.c index 7d7ab8c4b8..cbb974cab7 100644 --- a/firmware/usbstack/drivers/device/usb_storage.c +++ b/firmware/usbstack/drivers/device/usb_storage.c @@ -279,6 +279,8 @@ static int config_buf(uint8_t *buf, uint8_t type, unsigned index) { int len; + (void)index; + len = usb_stack_configdesc(&storage_config_desc, buf, BUFFER_SIZE, dev.descriptors); logf("result %d", len); if (len < 0) { @@ -290,6 +292,8 @@ static int config_buf(uint8_t *buf, uint8_t type, unsigned index) static int set_config(int config) { + (void)config; + /* enable endpoints */ logf("setup %s", dev.in->name); ops->enable(dev.in, (struct usb_endpoint_descriptor*)dev.descriptors[1]);