From fdf542b408aa320e4368a1cd96192c123670e796 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 17 Nov 2024 18:18:30 +0000 Subject: [PATCH] src/clients/lib/xmmsclient/xmmsclient.c: fix `-std=c23` build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc-15 switched to -std=c23 by default: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212 Without the change the build fails as: ../src/clients/lib/xmmsclient/xmmsclient.c:225:55: error: incompatible types when returning type ‘_Bool’ but ‘char *’ was expected 225 | x_api_error_if (!c, "with a NULL connection", false); | ^~~~~ --- src/clients/lib/xmmsclient/xmmsclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clients/lib/xmmsclient/xmmsclient.c b/src/clients/lib/xmmsclient/xmmsclient.c index d762033bf..3db65c562 100644 --- a/src/clients/lib/xmmsclient/xmmsclient.c +++ b/src/clients/lib/xmmsclient/xmmsclient.c @@ -222,7 +222,7 @@ xmmsc_disconnect_callback_set_full (xmmsc_connection_t *c, char * xmmsc_get_last_error (xmmsc_connection_t *c) { - x_api_error_if (!c, "with a NULL connection", false); + x_api_error_if (!c, "with a NULL connection", NULL); return c->error; }