Thread (8 messages) 8 messages, 5 authors, 2013-06-13

Re: [dm-devel] [PATCH linux-next] DM RAID: validate_raid_redundancy: Silence uninitialized variable warning

From: Alasdair G Kergon <agk@redhat.com>
Date: 2013-02-21 13:19:37
Also in: dm-devel, lkml

On Wed, Feb 20, 2013 at 01:31:18PM -0700, Tim Gardner wrote:
drivers/md/dm-raid.c: In function 'raid_ctr':
drivers/md/dm-raid.c:453:53: warning: 'rebuilds_per_group' may be used uninitialized in this function [-Wuninitialized]
drivers/md/dm-raid.c:383:11: note: 'rebuilds_per_group' was declared here
 
It appears unlikely that rebuilds_per_group could be used before set, but set
it to 0 anyways just to shutup GCC.
Looks bogus to me.
uninitialized_var() please.

Alasdair
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help