From patchwork Mon Aug 20 18:45:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Rogers X-Patchwork-Id: 178920 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EED2A2C00AC for ; Tue, 21 Aug 2012 05:22:50 +1000 (EST) Received: from localhost ([::1]:41449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3XYl-0006gT-Ej for incoming@patchwork.ozlabs.org; Mon, 20 Aug 2012 15:22:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3XYf-0006gD-IV for qemu-devel@nongnu.org; Mon, 20 Aug 2012 15:22:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3XYe-0006PN-Nf for qemu-devel@nongnu.org; Mon, 20 Aug 2012 15:22:41 -0400 Received: from [137.65.135.21] (port=38094 helo=suse.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3XYe-0006Nc-IA for qemu-devel@nongnu.org; Mon, 20 Aug 2012 15:22:40 -0400 Received: by suse.com (Postfix, from userid 1000) id C78AE30C3EF; Mon, 20 Aug 2012 12:45:26 -0600 (MDT) From: Bruce Rogers To: qemu-devel@nongnu.org Date: Mon, 20 Aug 2012 12:45:08 -0600 Message-Id: <1345488308-10410-1-git-send-email-brogers@suse.com> X-Mailer: git-send-email 1.7.7 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 137.65.135.21 Cc: Bruce Rogers Subject: [Qemu-devel] [PATCH] configure: avoid compiler warning in pipe2 detection X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org When building qemu-kvm for openSUSE:Factory, I am getting a warning in the pipe2 detection performed by configure, which prevents using --enable-werror. Change detection code to use return value of pipe2. Signed-off-by: Bruce Rogers Reviewed-by: Peter Maydell --- configure | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5808764..2e1f7f8 100755 --- a/configure +++ b/configure @@ -2399,8 +2399,7 @@ cat > $TMPC << EOF int main(void) { int pipefd[2]; - pipe2(pipefd, O_CLOEXEC); - return 0; + return pipe2(pipefd, O_CLOEXEC); } EOF if compile_prog "" "" ; then