From: Sergei Trofimovich <slyich@gmail.com>
To: ell@lists.linux.dev
Cc: Sergei Trofimovich <slyich@gmail.com>
Subject: [PATCH 3/4] dbus: fix -std=c23 build failure
Date: Sun, 17 Nov 2024 00:18:13 +0000 [thread overview]
Message-ID: <20241117001814.2149181-3-slyich@gmail.com> (raw)
In-Reply-To: <20241117001814.2149181-1-slyich@gmail.com>
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
next prev parent reply other threads:[~2024-11-17 0:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-17 0:18 [PATCH 1/4] settings: fix -std=c23 build failure Sergei Trofimovich
2024-11-17 0:18 ` [PATCH 2/4] cert: " Sergei Trofimovich
2024-11-17 0:18 ` Sergei Trofimovich [this message]
2024-11-17 0:18 ` [PATCH 4/4] test-rtnl: " Sergei Trofimovich
2024-11-18 18:15 ` [PATCH 1/4] settings: " Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241117001814.2149181-3-slyich@gmail.com \
--to=slyich@gmail.com \
--cc=ell@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox