lkml.org 
[lkml]   [2012]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Trace: initialize variable to clear warning
From
Date
On Tue, 28 Feb 2012 09:16:31 EST, Steven Rostedt said:

> This is a bug in gcc that's fixed in 4.6 and beyond. I don't want to
> remove this warning because it will hide a real bug if page2 really does
> become uninitialized. If 4.6 gives a warning here, then I'll fix it.

> > - void *page2;
> > + void *uninitialized_var(page2);

How would you feel about this?

- void *page2;
+ void *page2; /* gcc 4.5 bug causes incorrect "uninitialized" warning */

or something similar?

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-02-29 23:43    [W:0.467 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site