From: Bastien Nocera <hadess@hadess.net>
To: linux-bluetooth@vger.kernel.org
Subject: [BlueZ] attrib: Fix smatch "non-ANSI function declaration" warning
Date: Fri, 14 Aug 2026 11:27:41 +0200 [thread overview]
Message-ID: <20260814092747.3064311-1-hadess@hadess.net> (raw)
attrib/interactive.c:175:27: warning: non-ANSI function declaration of function 'disconnect_io'
---
attrib/interactive.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/attrib/interactive.c b/attrib/interactive.c
index 07d6cafc57ba..0291fa876533 100644
--- a/attrib/interactive.c
+++ b/attrib/interactive.c
@@ -172,7 +172,7 @@ static void connect_cb(GIOChannel *io, GError *err, gpointer user_data)
rl_printf("Connection successful\n");
}
-static void disconnect_io()
+static void disconnect_io(void)
{
if (conn_state == STATE_DISCONNECTED)
return;
--
2.55.0
next reply other threads:[~2026-08-14 9:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-14 9:27 Bastien Nocera [this message]
2026-08-14 10:57 ` [BlueZ] attrib: Fix smatch "non-ANSI function declaration" warning bluez.test.bot
2026-08-14 17:20 ` patchwork-bot+bluetooth
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=20260814092747.3064311-1-hadess@hadess.net \
--to=hadess@hadess.net \
--cc=linux-bluetooth@vger.kernel.org \
/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