[PATCH] usb/dfu.h: Include usb.h to avoid gcc warning
Stefan Schmidt
stefan at datenfreihafen.org
Fri Jun 17 10:16:05 EDT 2011
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 at datenfreihafen.org>
---
atusb/fw/usb/dfu.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/atusb/fw/usb/dfu.h b/atusb/fw/usb/dfu.h
index 0670012..1306906 100644
--- a/atusb/fw/usb/dfu.h
+++ b/atusb/fw/usb/dfu.h
@@ -15,7 +15,7 @@
#define DFU_H
#include <stdint.h>
-
+#include "usb.h"
enum dfu_request {
DFU_DETACH,
--
1.7.5.4
More information about the discussion
mailing list