summaryrefslogtreecommitdiff
path: root/hw/bsp/ch32v307/debug_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/bsp/ch32v307/debug_uart.c')
-rw-r--r--hw/bsp/ch32v307/debug_uart.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/bsp/ch32v307/debug_uart.c b/hw/bsp/ch32v307/debug_uart.c
index fbabeeadc..2fd3a9d64 100644
--- a/hw/bsp/ch32v307/debug_uart.c
+++ b/hw/bsp/ch32v307/debug_uart.c
@@ -25,8 +25,17 @@
*/
#include "debug_uart.h"
+
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+#endif
+
#include <ch32v30x.h>
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
#define UART_RINGBUFFER_SIZE_TX 128
#define UART_RINGBUFFER_MASK_TX (UART_RINGBUFFER_SIZE_TX-1)