Messages in this thread | | | Subject | Re: [PATCH] drivers/ata/sata_via.c - Eliminate "may be used uninitialized" warning | From | Joe Perches <> | Date | Sun, 06 Apr 2008 15:00:07 -0700 |
| |
On Mon, 2008-04-07 at 00:50 +0300, Adrian Bunk wrote: > On Sun, Apr 06, 2008 at 02:45:20PM -0700, Joe Perches wrote: > > Called by svia_init_one with a temporary, > > so there's no effective code change. > I'm not getting any warning here. > Are you using an older gcc?
Yes. Slightly less than 4.3.0
$ gcc --version gcc (GCC) 4.2.2 20071128 (prerelease) (4.2.2-3.1mdv2008.0)
$ git-show commit 6fdf5e67fe8d3c83500dad9acae985132c2459a3 Merge: abd24df... e64a3cf... Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Fri Apr 4 15:09:44 2008 -0700
Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/ralf/upstream-linus
* 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/ralf/upstream-linus: [MIPS] Make KGDB compile on UP [MIPS] Pb1200: Fix header breakage
$ make defconfig [] $ make clean [] $ make drivers/ata/sata_via.o [] CC drivers/ata/sata_via.o drivers/ata/sata_via.c: In function ‘svia_init_one’: drivers/ata/sata_via.c:504: warning: ‘host’ may be used uninitialized in this function
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |