lkml.org 
[lkml]   [2011]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] TRACING: Fix a copmile warning
From
Date
On Mon, 2011-07-25 at 15:43 -0400, Arnaud Lacombe wrote:

> Actually, we have a special uninitialized_var(x) macro to handle such
> false positive. From include/linux/compiler-gcc.h:
>
> /*
> * A trick to suppress uninitialized variable warning without generating any
> * code
> */
> #define uninitialized_var(x) x = x

I'm aware of that too, but I think that is inappropriate as well. As I
said, some versions of gcc report it, others don't. Seems that gcc 4.6.0
says this is an error where 4.5.1 does not (I just tried both). Looks to
me like a regression in gcc. Why not fix it there?

-- Steve




\
 
 \ /
  Last update: 2011-07-25 22:23    [W:0.089 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site