summaryrefslogtreecommitdiff
path: root/libcr_ipc
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-27 22:27:01 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-27 22:27:01 -0600
commit7ec97df3ee8edfd102fe573eaa61cf4e5c6284cb (patch)
treee696f30da5645cdd3cb09971d9544622e9943bcf /libcr_ipc
parentfa357459f88bb8f0170d1a68df66e7d068d59996 (diff)
wip fixes
Diffstat (limited to 'libcr_ipc')
-rw-r--r--libcr_ipc/sema.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcr_ipc/sema.c b/libcr_ipc/sema.c
index 5f489aa..a3b2ca0 100644
--- a/libcr_ipc/sema.c
+++ b/libcr_ipc/sema.c
@@ -36,7 +36,10 @@ static inline bool drain(cr_sema_t *sema) {
cr_unpause(sema->head->val);
sema->head = sema->head->next;
if (!sema->head)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
sema->tail = &sema->head;
+#pragma GCC diagnostic pop
}
}
sema->locked = false;