Re: [patch] initialize variables to reduce i386 warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux