Re: [PATCH] stop gcc warning about uninitialized 'dev' in ata_scsi_scan_host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > > I guess we don't want to sprinkle these around all over the place
> > > just to solve cosmetic issues, which makes sense, but is there
> > > some other approach we could take instead? Any suggestions? Or
> > > just live with it?
> > 
> > We have an annotation for these kinds of warnings in the kernel.
> 
> Oh, is it this?
> 
> from linux/compiler-gcc3.h
> #define uninitialized_var(x) x = x

Yes, you got it.

-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux