lkml.org 
[lkml]   [2006]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Compile warning because of an uninitialized variable
On Thu, May 18, 2006 at 11:49:25PM -0400, Stephane Ouellette wrote:
> Folks,
>
> gcc generates a warning because of an uninitialized variable in
> arch/i386/kernel/cpu/transmeta.c.
> The variable "cpu_freq" is initialized by a call to cpuid(). The following
> patch fixes the warning.

This is a gcc bug. The variable is passed by reference
to a function where the assignment is made.
The second time it's used, if that > 80860002 condition
is satisfied, we *must* have satisfied the previous
check where we made the assignment, as 'max' hasn't changed
between the two checks.

Dave

--
http://www.codemonkey.org.uk
-
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-19 06:03    [W:0.115 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site