Skip to content

Commit

Permalink
src/clients/lib/xmmsclient/service/client.c: fix -std=c23 build
Browse files Browse the repository at this point in the history
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/service/client.c:350:51: error: incompatible types when returning type ‘_Bool’ but ‘xmmsc_sc_namespace_t *’ {aka ‘struct xmmsc_sc_namespace_St *’} was expected
      350 |         x_api_error_if (!name, "with NULL name.", false);
          |                                                   ^~~~~
  • Loading branch information
trofi committed Nov 17, 2024
1 parent fdf542b commit b6a6e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/lib/xmmsclient/service/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ xmmsc_sc_namespace_new (xmmsc_sc_namespace_t *parent,
{
xmmsc_sc_interface_entity_t *ifent;

x_api_error_if (!name, "with NULL name.", false);
x_api_error_if (!validate_entity_name (name), "with invalid name", false);
x_api_error_if (!name, "with NULL name.", NULL);
x_api_error_if (!validate_entity_name (name), "with invalid name", NULL);

x_return_null_if_fail (parent);

Expand Down

0 comments on commit b6a6e8c

Please sign in to comment.