summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-10-17 17:47:11 +0700
committerGitHub <[email protected]>2021-10-17 17:47:11 +0700
commit38f02f0f3dcaf5bf8fe816b56060f55cf932798f (patch)
tree78a4c6f3706f268f9ae864299175cd98eec74a67 /src/device
parentd94a5aa04452ccee719148d0d163e37a80b960ba (diff)
parent06d955538988c3859bf6c5428a38bd8311069ed9 (diff)
Merge pull request #1145 from kilograham/release-0.12.0
Address compiler warnings
Diffstat (limited to 'src/device')
-rw-r--r--src/device/dcd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index d43a0dd9a..c042cc708 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -106,7 +106,14 @@ typedef struct TU_ATTR_ALIGNED(4)
void dcd_init (uint8_t rhport);
// Interrupt Handler
+#if __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wredundant-decls"
+#endif
void dcd_int_handler(uint8_t rhport);
+#if __GNUC__
+#pragma GCC diagnostic pop
+#endif
// Enable device interrupt
void dcd_int_enable (uint8_t rhport);