Received: from eggs.gnu.org ([2001:4830:134:3::10]:54625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFwg8-0003Li-6T for qemu-devel@nongnu.org; Thu, 23 Jun 2016 00:55:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFwg1-0008OP-Pe for qemu-devel@nongnu.org; Thu, 23 Jun 2016 00:55:47 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:34255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFwg0-0008No-Da for qemu-devel@nongnu.org; Thu, 23 Jun 2016 00:55:41 -0400 Received: by mail-pf0-x244.google.com with SMTP id 66so5731783pfy.1 for ; Wed, 22 Jun 2016 21:55:39 -0700 (PDT) References: <1466471645-5396-1-git-send-email-aik@ozlabs.ru> <1466471645-5396-5-git-send-email-aik@ozlabs.ru> <3ce058e2-d20f-abc1-1102-4eb240d6dfa7@redhat.com> <7339513f-8cce-340f-6011-a3dfead1c726@ozlabs.ru> From: Alexey Kardashevskiy Message-ID: Date: Thu, 23 Jun 2016 14:55:32 +1000 MIME-Version: 1.0 In-Reply-To: <7339513f-8cce-340f-6011-a3dfead1c726@ozlabs.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH qemu v18 4/5] vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-devel@nongnu.org Cc: Alex Williamson , qemu-ppc@nongnu.org, David Gibson On 23/06/16 13:59, Alexey Kardashevskiy wrote: >> ret is not initialized and it is used in "fail:". >> >> hw/vfio/common.c: In function ‘vfio_listener_region_add’: >> hw/vfio/common.c:493:30: error: ‘ret’ may be used uninitialized in this >> function [-Werror=maybe-uninitialized] >> container->error = ret; > > Oh. Thanks for reporting. I use cross gcc and there must be something I am > doing wrong as I do not see these warnings but I do see them when compile > with native compiler... Ah, figured out - gcc -O2 enables the warning, and I always configure with --enable-debug so gcc is not getting -O2. Will pay attention to this from now on. -- Alexey