summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-03-02 21:00:12 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-03-02 21:00:12 +0000
commit793fc3f0729103ad8d2c196f0783b9f36662f6bd (patch)
tree5003733e64028680c0709ea3193aa374207ddcf2
parent776d015cc492cb9c682bb1d223011b7a808011e8 (diff)
downloadrockbox-793fc3f0729103ad8d2c196f0783b9f36662f6bd.tar.gz
rockbox-793fc3f0729103ad8d2c196f0783b9f36662f6bd.zip
add some #ifdefs to gt rid of some unused variable warnings (and their RAM use)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16487 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/usbstack/usb_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c
index 218b297455..eef963cf8a 100644
--- a/firmware/usbstack/usb_core.c
+++ b/firmware/usbstack/usb_core.c
@@ -285,10 +285,14 @@ static int usb_address = 0;
static bool initialized = false;
static enum { DEFAULT, ADDRESS, CONFIGURED } usb_state;
+#ifdef USB_STORAGE
static bool usb_core_storage_enabled = false;
+#endif
/* Next one is non-static, to enable setting it from the debug menu */
bool usb_core_serial_enabled = false;
+#ifdef USB_CHARGING_ONLY
static bool usb_core_charging_enabled = false;
+#endif
#if defined(USB_BENCHMARK)
static bool usb_core_benchmark_enabled = false;
#endif