[PATCH 3/4] dbus: fix -std=c23 build failure
Sergei Trofimovich <[email protected]> Sun, 17 Nov 2024 00:18:13 +0000
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
gcc-15 switched to -std=c23 by default:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212
As a result `ell` fails the build as:
ell/dbus.c:1700:24: error: incompatible types when returning type '_Bool' but 'void *' was expected
1700 | return false;
| ^~~~~
---
ell/dbus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ell/dbus.c b/ell/dbus.c
index bd6e1b8..1ab4ded 100644
--- a/ell/dbus.c
+++ b/ell/dbus.c
@@ -1697,10 +1697,10 @@ LIB_EXPORT void *l_dbus_object_get_data(struct l_dbus *dbus, const char *object,
const char *interface)
{
if (unlikely(!dbus))
- return false;
+ return NULL;
if (unlikely(!dbus->tree))
- return false;
+ return NULL;
return _dbus_object_tree_get_interface_data(dbus->tree, object,
interface);
--
2.47.0