From: Josh Triplett Subject: [PATCH] Fix warning in mm.c with gcc-4.0; breaks build due to -Werror Date: Tue, 02 Aug 2005 16:11:42 -0700 Message-ID: <1123024302.4464.15.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-hfCpwfLcIVm17h95G1Hm" Return-path: 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 --=-hfCpwfLcIVm17h95G1Hm Content-Type: text/plain Content-Transfer-Encoding: 7bit The attached trivial patch fixes a spurious gcc-4.0 warning in xen/arch/x86/mm.c when building the current hg tip. Due to -Werror, this breaks builds with gcc-4.0. Signed-off-by: Josh Triplett - Josh Triplett --=-hfCpwfLcIVm17h95G1Hm Content-Disposition: attachment; filename=mm-gcc-4.0-fix-warning.patch Content-Type: text/x-patch; name=mm-gcc-4.0-fix-warning.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r 0d69d2ce73e9 xen/arch/x86/mm.c --- a/xen/arch/x86/mm.c Tue Aug 2 19:32:48 2005 +++ b/xen/arch/x86/mm.c Tue Aug 2 15:59:45 2005 @@ -1040,7 +1040,7 @@ unsigned int type) { l2_pgentry_t ol2e; - unsigned long vaddr; + unsigned long vaddr = 0; if ( unlikely(!is_guest_l2_slot(type,pgentry_ptr_to_slot(pl2e))) ) { --=-hfCpwfLcIVm17h95G1Hm Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-hfCpwfLcIVm17h95G1Hm--