lkml.org 
[lkml]   [2008]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] stop gcc warning about uninitialized 'dev' in ata_scsi_scan_host
> > > 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


\
 
 \ /
  Last update: 2008-10-16 23:27    [W:0.151 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site