diff options
| author | Yunhao Tian <[email protected]> | 2021-11-30 17:11:09 +0800 |
|---|---|---|
| committer | Yunhao Tian <[email protected]> | 2021-11-30 17:19:11 +0800 |
| commit | ac20605e3f098687ce40349bbecc9266333d951b (patch) | |
| tree | 8d707fc933b2b8cd6decd2bc46820c31c55fd294 /src/device | |
| parent | dba59217da489dc497cbe2b573e7e144d085c869 (diff) | |
Ignore certain compiler options on ARMCC
ARMCC also sets __GNU__ macro, but doesn't support
GCC diagnostic pragmas.
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index c042cc708..fbcef40d4 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -106,12 +106,12 @@ typedef struct TU_ATTR_ALIGNED(4) void dcd_init (uint8_t rhport); // Interrupt Handler -#if __GNUC__ +#if __GNUC__ && !defined(__ARMCC_VERSION) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wredundant-decls" #endif void dcd_int_handler(uint8_t rhport); -#if __GNUC__ +#if __GNUC__ && !defined(__ARMCC_VERSION) #pragma GCC diagnostic pop #endif |
