summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/kit/async_function.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/kit/async_function.h b/source/kit/async_function.h
index 6b4616d..0389485 100644
--- a/source/kit/async_function.h
+++ b/source/kit/async_function.h
@@ -7,6 +7,12 @@
extern "C" {
#endif
+#ifdef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-function"
+# pragma GCC diagnostic ignored "-Wunknown-pragmas"
+#endif
+
typedef struct {
int _;
} kit_af_void;
@@ -40,6 +46,10 @@ static void kit_async_function_dispatch(void *promise) {
}
#endif
+#ifdef __GNUC__
+# pragma GCC diagnostic pop
+#endif
+
#define KIT_AF_STATE(ret_type_, name_, ...) \
struct name_##_coro_state_ { \
KIT_AF_STATE_DATA; \