From 7ec97df3ee8edfd102fe573eaa61cf4e5c6284cb Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Fri, 27 Sep 2024 22:27:01 -0600 Subject: wip fixes --- libcr_ipc/sema.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libcr_ipc') 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; -- cgit v1.2.3-2-g168b