summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-01-19 21:17:32 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-01-19 21:17:32 +0000
commitf2a0f9905fef725c7757e8bc5dd52c8c79b28b9c (patch)
treed0589205751b3bfc317b55ba2e88dd0a14777014 /firmware
parent2f78fa114dddcef64db8fe4ffec329178afa4868 (diff)
downloadrockbox-f2a0f9905fef725c7757e8bc5dd52c8c79b28b9c.tar.gz
rockbox-f2a0f9905fef725c7757e8bc5dd52c8c79b28b9c.tar.bz2
rockbox-f2a0f9905fef725c7757e8bc5dd52c8c79b28b9c.zip
Make the tcc usb driver compile without warnings. No functional changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24286 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/usb-tcc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/usb-tcc.c b/firmware/target/arm/usb-tcc.c
index 2538efd12e..9d5ae2d50a 100644
--- a/firmware/target/arm/usb-tcc.c
+++ b/firmware/target/arm/usb-tcc.c
@@ -490,6 +490,7 @@ void USB_DEVICE(void)
void usb_drv_set_address(int address)
{
+ (void) address;
DEBUG(2, "setting address %d %d", address, TCC7xx_USB_FUNC);
}
@@ -628,7 +629,8 @@ int usb_drv_recv(int endpoint, void* ptr, int length)
flags = disable_irq_save();
if (tcc_ep->buf) {
- panicf_my("%s: overrun: %x %x", __func__, tcc_ep->buf, tcc_ep);
+ panicf_my("%s: overrun: %x %x", __func__,
+ (unsigned int)tcc_ep->buf, (unsigned int)tcc_ep);
}
tcc_ep->buf = ptr;
@@ -676,10 +678,14 @@ void usb_drv_set_test_mode(int mode)
bool usb_drv_stalled(int endpoint, bool in)
{
panicf_my("%s(%d,%d)", __func__, endpoint, in);
+ return false;
}
void usb_drv_stall(int endpoint, bool stall,bool in)
{
+ (void) endpoint;
+ (void) stall;
+ (void) in;
printf("%s(%d,%d,%d)", __func__, endpoint, stall, in);
}