1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-19 06:06:15 +02:00

usb/dfu.h: Include usb.h to avoid gcc warning

With warnings treated as errors I get this:
In file included from flash.c:19:0:
usb/dfu.h:107:35: error: 'struct setup_request' declared inside parameter list
usb/dfu.h:107:35: error: its scope is only this definition or declaration, which
 is probably not what you want
make: *** [flash.o] Error 1

Struct setup_request is declared in usb.h so include it.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
This commit is contained in:
Stefan Schmidt 2011-06-17 12:01:38 -03:00 committed by Werner Almesberger
parent cce781078e
commit a48c6dcb30

View File

@ -16,6 +16,8 @@
#include <stdint.h> #include <stdint.h>
#include "usb.h"
enum dfu_request { enum dfu_request {
DFU_DETACH, DFU_DETACH,