mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 07:02:31 -05:00
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:
parent
f27c6a6e02
commit
924e906c27
2 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue