lkml.org 
[lkml]   [2006]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] fs warning fixes
On Sun, May 21, 2006 at 03:03:36PM -0400, Ameer Armaly wrote:

> This patch gets rid of two uninitialized variable warnings by
> initializing idx in fs/bio.c and fd in fs/eventpoll.c; both of these
> are initialized through pointers later on.

> - unsigned long idx;
> + unsigned long idx = 0;

[...]

> - int error, fd;
> + int error, fd = 0;

Please don't do this unless it really is fixing a bug. gcc false
warnings are not kernel bugs.
-
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/

\
 
 \ /
  Last update: 2006-05-22 00:10    [W:0.030 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site