summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-04-08 01:49:47 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-04-08 01:49:47 +0200
commitd747d4b6c57cc0ac42e0da370f03704d8e5927f9 (patch)
treeca2ce7edd8f1094212b9011f1b0787e516bf4f36
parentfa8d01934681195aacea8b95c78f27ca6a660bdd (diff)
downloadkit-d747d4b6c57cc0ac42e0da370f03704d8e5927f9.zip
Fix unused function
-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; \