[ccan] [PATCH 3/3] bytestring: avoid compile_fail failure due to uninitialized warning
David Gibson
david at gibson.dropbear.id.au
Wed Aug 19 09:18:51 AEST 2015
On Mon, Aug 17, 2015 at 08:33:31PM -0400, Cody P Schafer wrote:
> bytestring: Module tests compile (tests_compile): FAIL
> /home/x/g/ccc/ccan/ccan/bytestring/test/compile_fail-BYTESTRING-2.c:Compile gave warnings without -DFAIL:
> /home/x/g/ccc/ccan/ccan/bytestring/test/compile_fail-BYTESTRING-2.c: In function ‘main’:
> /home/x/g/ccc/ccan/ccan/bytestring/test/compile_fail-BYTESTRING-2.c:15:2: warning: ‘bs.len’ is used uninitialized in this function [-Wuninitialized]
> printf("%zd %s\n", bs.len, x);
> ^
>
> Signed-off-by: Cody P Schafer <dev at codyps.com>
Thanks, applied.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20150818/436f24c9/attachment.sig>
More information about the ccan
mailing list