From 289b4f50eb5c1fbf5a850be10633d9b6b7bf82e7 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Tue, 5 May 2020 11:28:27 +0200 Subject: [PATCH] Remove const qualifier in queues_get_displayed The returned node was theoretically read-only however all the other nodes accessible do not inherit the qualifier. Since none of the glib functions use const with Glib, even the read-only ones. There's no use in having it. This resolves the warning about g_list_nth_data. --- src/queues.c | 2 +- src/queues.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/queues.c b/src/queues.c index f6e0626..8a73e09 100644 --- a/src/queues.c +++ b/src/queues.c @@ -45,7 +45,7 @@ void queues_init(void) } /* see queues.h */ -const GList *queues_get_displayed(void) +GList *queues_get_displayed(void) { return g_queue_peek_head_link(displayed); } diff --git a/src/queues.h b/src/queues.h index 463d5dc..caf8d1c 100644 --- a/src/queues.h +++ b/src/queues.h @@ -24,7 +24,7 @@ void queues_init(void); * * @return read only list of notifications */ -const GList *queues_get_displayed(void); +GList *queues_get_displayed(void); /** * Get the highest notification in line