diff options
| author | hathach <[email protected]> | 2014-03-14 15:35:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-14 15:51:07 +0700 |
| commit | 16df2a2f621d84107ed27d3df39e618c522cd027 (patch) | |
| tree | a0603a020ef3a11a5262419e5b0d09e53dd6f020 /tinyusb | |
| parent | f28746f28ae02030641fba82c43f7827371831a6 (diff) | |
Suppress Keil warnings #66-D: enumeration value is out of "int" range
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/class/cdc_rndis.h | 8 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc175x_6x.c | 4 | ||||
| -rw-r--r-- | tinyusb/host/ohci/ohci.c | 8 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tinyusb/class/cdc_rndis.h b/tinyusb/class/cdc_rndis.h index 33df6cf6b..c610e5781 100644 --- a/tinyusb/class/cdc_rndis.h +++ b/tinyusb/class/cdc_rndis.h @@ -51,6 +51,10 @@ extern "C" { #endif +#ifdef __CC_ARM +#pragma diag_suppress 66 // Suppress Keil warnings #66-D: enumeration value is out of "int" range +#endif + /// RNDIS Message Types typedef enum { RNDIS_MSG_PACKET = 0x00000001UL, ///< The host and device use this to send network data to one another. @@ -85,6 +89,10 @@ typedef enum { RNDIS_STATUS_MEDIA_DISCONNECT = 0x4001000CUL ///< Device is disconnected from the medium. }rndis_msg_status_t; +#ifdef __CC_ARM +#pragma diag_default 66 // return Keil 66 to normal severity +#endif + //--------------------------------------------------------------------+ // MESSAGE STRUCTURE //--------------------------------------------------------------------+ diff --git a/tinyusb/hal/hal_lpc175x_6x.c b/tinyusb/hal/hal_lpc175x_6x.c index c04b1660c..c611656a6 100644 --- a/tinyusb/hal/hal_lpc175x_6x.c +++ b/tinyusb/hal/hal_lpc175x_6x.c @@ -41,6 +41,10 @@ #if TUSB_CFG_MCU == MCU_LPC175X_6X
+#ifdef __CC_ARM
+#pragma diag_suppress 66 // Suppress Keil warnings #66-D: enumeration value is out of "int" range
+#endif
+
//--------------------------------------------------------------------+
// IMPLEMENTATION
//--------------------------------------------------------------------+
diff --git a/tinyusb/host/ohci/ohci.c b/tinyusb/host/ohci/ohci.c index 63b30e0ac..5bd7db475 100644 --- a/tinyusb/host/ohci/ohci.c +++ b/tinyusb/host/ohci/ohci.c @@ -79,6 +79,10 @@ enum { OHCI_PERIODIC_START = 0x3E67
};
+#ifdef __CC_ARM
+#pragma diag_suppress 66 // Suppress Keil warnings #66-D: enumeration value is out of "int" range
+#endif
+
enum {
OHCI_INT_SCHEDULING_OVERUN_MASK = BIT_(0),
OHCI_INT_WRITEBACK_DONEHEAD_MASK = BIT_(1),
@@ -92,6 +96,10 @@ enum { OHCI_INT_MASTER_ENABLE_MASK = BIT_(31),
};
+#ifdef __CC_ARM
+#pragma diag_default 66 // return Keil 66 to normal severity
+#endif
+
enum {
OHCI_RHPORT_CURRENT_CONNECT_STATUS_MASK = BIT_(0),
OHCI_RHPORT_PORT_ENABLE_STATUS_MASK = BIT_(1),
|
