From: Ian Jackson Subject: Re: [PATCH] cpufreq.c: shut up compiler about cpufreq_dom Date: Wed, 29 Oct 2008 17:57:05 +0000 Message-ID: <18696.41969.135862.43112@mariner.uk.xensource.com> References: <18696.37682.162183.607991@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18696.37682.162183.607991@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I wrote: > - struct cpufreq_dom *cpufreq_dom; > + struct cpufreq_dom *cpufreq_dom = 0; Thanks for applying that but it turns out that GCC only produces the first such error ! Hopefully this will fix our automated builds ... Signed-off-by: Ian Jackson Ian. diff -r 6a8fea290af5 xen/drivers/cpufreq/cpufreq.c --- a/xen/drivers/cpufreq/cpufreq.c Wed Oct 29 16:58:05 2008 +0000 +++ b/xen/drivers/cpufreq/cpufreq.c Wed Oct 29 17:50:16 2008 +0000 @@ -181,7 +181,7 @@ int cpufreq_del_cpu(unsigned int cpu) { unsigned int dom, domexist = 0; struct list_head *pos; - struct cpufreq_dom *cpufreq_dom; + struct cpufreq_dom *cpufreq_dom = NULL; struct cpufreq_policy *policy; struct processor_performance *perf = &processor_pminfo[cpu]->perf;