summaryrefslogtreecommitdiff
path: root/at91lib/usb
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-31 18:02:04 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-31 18:02:04 +0200
commitcfe1806207a60775f699a78ec9d8c0cf4a709b56 (patch)
tree4a1a70835bf97053acf9e4c6b2396ec22f36cd02 /at91lib/usb
parenta341a060020ee1b5d7375ab4e40ad61314d43be4 (diff)
DFU: remove some compiler warnings by using type-casts
Diffstat (limited to 'at91lib/usb')
-rw-r--r--at91lib/usb/device/dfu/dfu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/at91lib/usb/device/dfu/dfu.h b/at91lib/usb/device/dfu/dfu.h
index 2e8aa8b..283c3cb 100644
--- a/at91lib/usb/device/dfu/dfu.h
+++ b/at91lib/usb/device/dfu/dfu.h
@@ -62,9 +62,9 @@ extern const struct USBStringDescriptor USBDFU_string3;
#define DFU_NUM_STRINGS 3
#define DFU_STRING_DESCRIPTORS \
- &USBDFU_string1, \
- &USBDFU_string2, \
- &USBDFU_string3,
+ (const unsigned char *) &USBDFU_string1, \
+ (const unsigned char *) &USBDFU_string2, \
+ (const unsigned char *) &USBDFU_string3,
#else /* BOARD_USB_DFU */
personal git repositories of Harald Welte. Your mileage may vary