From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 12 of 45] gcc-4.6 compile fix: tools/libxl/libxl_pci.c Date: Thu, 19 May 2011 21:05:31 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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 # HG changeset patch # User Olaf Hering # Date 1305824394 -7200 # Node ID a096a1358c6c4701d44f1467ccc36cf422ffb6a7 # Parent da1b3aa3abf442694ba388968cc59b582ef3d8c9 gcc-4.6 compile fix: tools/libxl/libxl_pci.c libxl_pci.c: In function 'libxl__create_pci_backend': libxl_pci.c:230:9: error: variable 'ret' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Olaf Hering diff -r da1b3aa3abf4 -r a096a1358c6c tools/libxl/libxl_pci.c --- a/tools/libxl/libxl_pci.c Thu May 19 18:59:53 2011 +0200 +++ b/tools/libxl/libxl_pci.c Thu May 19 18:59:54 2011 +0200 @@ -269,7 +269,7 @@ out: flexarray_free(back); if (front) flexarray_free(front); - return 0; + return ret; } static int libxl__device_pci_add_xenstore(libxl__gc *gc, uint32_t domid, libxl_device_pci *pcidev, int starting)