Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750712AbWHIXpJ (ORCPT ); Wed, 9 Aug 2006 19:45:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751174AbWHIXpJ (ORCPT ); Wed, 9 Aug 2006 19:45:09 -0400 Received: from main.gmane.org ([80.91.229.2]:2186 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S1750712AbWHIXpH (ORCPT ); Wed, 9 Aug 2006 19:45:07 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Oleg Verych Subject: Re: [PATCH] arch/i386/kernel/cpu/transmeta.c, kernel 2.6.17.8 Date: Wed, 09 Aug 2006 23:30:33 +0200 Organization: Palacky University in Olomouc Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 158.194.192.40 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2 X-Accept-Language: en In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 735 Lines: 10 Forrest Voight: > Corrects warning: > arch/i386/kernel/cpu/transmeta.c: In function 'init_transmeta': > arch/i386/kernel/cpu/transmeta.c:12: warning: 'cpu_freq' may be used > uninitialized in this function > - unsigned int cpu_rev, cpu_freq, cpu_flags, new_cpu_rev; > + unsigned int cpu_rev, cpu_freq = 0, cpu_flags, new_cpu_rev; If one doesn't want to add more init code, but variable indeed used uninitialazed, in GCC 3.X struct may be used, GCC 4.X needs 'volatile'. - 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/