public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test/unit bitset_t.c
@ 2011-11-21 13:15 zkabelac
0 siblings, 0 replies; only message in thread
From: zkabelac @ 2011-11-21 13:15 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2011-11-21 13:15:45
Modified files:
test/unit : bitset_t.c
Log message:
Cleanup gcc warning
bitset_t.c:39: warning: 'last' may be used uninitialized in this function
Compiler is not smart enough to see the code path which avoid using
unitialized 'last'.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/unit/bitset_t.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2
--- LVM2/test/unit/bitset_t.c 2011/11/20 21:43:20 1.1
+++ LVM2/test/unit/bitset_t.c 2011/11/21 13:15:40 1.2
@@ -36,7 +36,7 @@
static void test_get_next()
{
- int i, j, last, first;
+ int i, j, last = 0, first;
dm_bitset_t bs = dm_bitset_create(mem, NR_BITS);
for (i = 0; i < NR_BITS; i++)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-21 13:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-21 13:15 LVM2/test/unit bitset_t.c zkabelac
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 read-only IMAP folder(s) and NNTP newsgroup(s).