Remove two more warnings when building the usb stack

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14497 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2007-08-28 23:49:03 +00:00
parent f27c6a6e02
commit 924e906c27
2 changed files with 5 additions and 0 deletions

View file

@ -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) {

View file

@ -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]);