From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9208 invoked by alias); 21 Nov 2011 13:15:49 -0000 Received: (qmail 9127 invoked by uid 9737); 21 Nov 2011 13:15:48 -0000 Date: Mon, 21 Nov 2011 13:15:00 -0000 Message-ID: <20111121131548.9125.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test/unit bitset_t.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00089.txt.bz2 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++)