summaryrefslogtreecommitdiff
path: root/libcr_ipc/sema.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcr_ipc/sema.c')
-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;