* [PATCH] Fix btio.c compilation warning
@ 2011-05-05 18:55 anderson.briglia
2011-05-05 19:14 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: anderson.briglia @ 2011-05-05 18:55 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Anderson Briglia
From: Anderson Briglia <anderson.briglia@openbossa.org>
This patch fixes a compilation warning regarding btio/btio.c. Actually
this warning seems a false positive by Ubuntu Natty GCC version. A new
bug on Ubuntu bug system was opened but if you do not want to wait until
it is analyzed, just apply this minor fix.
btio/btio.c: In function 'bt_io_get':
btio/btio.c:803:11: warning: 'flushable' may be used uninitialized in
this function
---
btio/btio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/btio/btio.c b/btio/btio.c
index 6d71b90..a3cf38a 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -800,7 +800,7 @@ static gboolean l2cap_get(int sock, GError **err, BtIOOption opt1,
uint8_t dev_class[3];
uint16_t handle;
socklen_t len;
- gboolean flushable;
+ gboolean flushable = FALSE;
len = sizeof(l2o);
memset(&l2o, 0, len);
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix btio.c compilation warning
2011-05-05 18:55 [PATCH] Fix btio.c compilation warning anderson.briglia
@ 2011-05-05 19:14 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-05-05 19:14 UTC (permalink / raw)
To: anderson.briglia; +Cc: linux-bluetooth
Hi,
On Thu, May 05, 2011, anderson.briglia@openbossa.org wrote:
> This patch fixes a compilation warning regarding btio/btio.c. Actually
> this warning seems a false positive by Ubuntu Natty GCC version. A new
> bug on Ubuntu bug system was opened but if you do not want to wait until
> it is analyzed, just apply this minor fix.
>
> btio/btio.c: In function 'bt_io_get':
> btio/btio.c:803:11: warning: 'flushable' may be used uninitialized in
> this function
> ---
> btio/btio.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-05 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-05 18:55 [PATCH] Fix btio.c compilation warning anderson.briglia
2011-05-05 19:14 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).