aboutsummaryrefslogtreecommitdiffstats
path: root/src/ring.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ring.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ring.c b/src/ring.c
index 00ea90f..5bb9cd2 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -47,6 +47,13 @@ void ring_destroy(struct ring* this)
}
+
+#if defined(__clang__)
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wcast-align"
+#endif
+
+
/**
* Marshal a ring buffer
*
@@ -103,6 +110,12 @@ size_t ring_unmarshal(struct ring* this, const void* buf)
}
+#if defined(__clang__)
+# pragma GCC diagnostic pop
+#endif
+
+
+
/**
* Append data to a ring buffer
*