lkml.org 
[lkml]   [2006]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateSat, 20 May 2006 17:02:32 -0700
FromChris Wedgwood <>
SubjectRe: [patch] initialize variables to reduce i386 warnings
On Sat, May 20, 2006 at 07:19:48PM -0400, Ameer Armaly wrote:

> Initialized cpu_freq in arch/i386/kernel/cpu/transmeta.c to suppress
> warning.

Urgh.

Doing this just to silence gcc is wrong. I know we've done this at
times in the past and that's still not right (I would argue those
should be reverted even).

> struct range {
> - unsigned long start;
> - unsigned long end;
> + unsigned long start = 0;
> + unsigned long end = 0;

?
-
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-21 02:05    [from the cache]
©2003-2010