Messages in this thread | | | Date | Thu, 21 Feb 2013 13:19:31 +0000 | From | Alasdair G Kergon <> | Subject | Re: [dm-devel] [PATCH linux-next] DM RAID: validate_raid_redundancy: Silence uninitialized variable warning |
| |
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
| |