Messages in this thread | | | Date | Thu, 18 May 2006 23:59:32 -0400 | From | Dave Jones <> | Subject | Re: [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/
| |