From 17af2ad0706d7e092a130e6d7f0c091c831c5969 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 16 May 2024 00:11:54 +0200 Subject: [PATCH] geniuspaste: Silence a harmless warning with GLib 2.76+ --- geniuspaste/src/geniuspaste.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geniuspaste/src/geniuspaste.c b/geniuspaste/src/geniuspaste.c index 81ca58e48..97beafbc2 100644 --- a/geniuspaste/src/geniuspaste.c +++ b/geniuspaste/src/geniuspaste.c @@ -611,7 +611,7 @@ static SoupMessage *json_request_new(const gchar *method, g_datalist_foreach(fields, append_json_data_item, str); g_string_append_c(str, '}'); bytes = g_bytes_new_take(str->str, str->len); - g_string_free(str, FALSE); + (void) g_string_free(str, FALSE); /* buffer already taken above */ soup_message_set_request_body_from_bytes(msg, "application/json", bytes); g_bytes_unref(bytes);