Fix btio.c compilation warning
PATCH 1/1 Fix btio.c compilation warning
From: Anderson Briglia <[email protected]>
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(-)
btio/btio.c +1 -1
@@ -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);
Signature · 1 line
1.7.4.1
Johan Hedberg
AppliedHi,
Quoted 11 lines · On Thu, May 05, 2011, [email protected] 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