From patchwork Fri Apr 25 16:11:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 342927 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E4494140099 for ; Sat, 26 Apr 2014 02:11:56 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=oUlwhy3yZ8URYFcydZmgC0wgKZmQpY0HdjBjxsxSliGDYa5sHyZob hZvYZOp7+N4Q6JCz955eMDIrv7oQQjql5RLgcsKp6ABe+SD1e5OfrRw/Otud3LwT Me8xqdoqb/0RJH52m8t7zTjynbaWoz3EzCzkoIUWyKy8kUW525JXds= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=A6e5CVilcq1Br+QaxdcMy0nDxOQ=; b=jORgPtyZqDLjM1P/itEKyrEkax1N hJuTQEjjgZSgRsZGjYP5I7MfUCWDOQ8vAX+iQhHukX8cxHXV3J8xumOiSEa0NR2A T2iGgoJWFEjjqpZVoDisRkov1bZ6oet/ql/2O+BZBMevmh2ybX11KfPagtXkwSTG /hKe+RKdo0UgiXY= Received: (qmail 3981 invoked by alias); 25 Apr 2014 16:11:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 3954 invoked by uid 89); 25 Apr 2014 16:11:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f181.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=NfE9xwmm1YEuQWQzsRNmOmHXOS6lVYhfgKVkm1+wVJk=; b=ThMRNOZTetwsiuWjjQEKAficY+WfvRCOJ7UhJSyfNXTMS+cDrB+5OXcEhSGOw7ESb8 GL1UwX/lsFeG1eWSTvdOqAPuuoXb9ELdHFKICfbyOxGdRUc2i1+YgksHbtmk/43roA99 Ag5UVnAcDMEXxYZz8phtfqGWn3nMwkkdjJIZGMz5XAeIJdaeli3FcPCnwmNcFDFXBUc+ DLnCTJ5EdxDPFVNZa3LJyNZ7/fU6Iuw1s9F9tYaGb4q34ekU7CUCdD2xpFexuySZ6DH4 nOwfCiaHNfZeaWtVMThXu7kIrLn6p5EkrlZy8TYHy8CyUHqAgi6MMTmL1TzoxBB0rSdA Ua3w== X-Gm-Message-State: ALoCoQn0SnmZIlWfik+bzXOeJkQek7z341n7jdWV7Sw6LcRmCwuxRV8n02Q9o85JVy/dFkiLDzdz X-Received: by 10.180.21.180 with SMTP id w20mr4422400wie.34.1398442303395; Fri, 25 Apr 2014 09:11:43 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH] stdlib/gmp-impl.h: Silence -Wundef warning for USE_STACK_ALLOC Date: Fri, 25 Apr 2014 17:11:37 +0100 Message-Id: <1398442297-2854-1-git-send-email-will.newton@linaro.org> The upstream version of GMP has long removed this conditional altogether in this commit: changeset: 5254:88618a4694ac user: Kevin Ryde date: Sun Jun 17 01:37:27 2001 +0200 So just turn the #if into an #ifdef to silence the warning. ChangeLog: 2014-04-25 Will Newton * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef rather than #if. --- stdlib/gmp-impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/gmp-impl.h b/stdlib/gmp-impl.h index 83865dc..b7da5bd 100644 --- a/stdlib/gmp-impl.h +++ b/stdlib/gmp-impl.h @@ -47,7 +47,7 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see #endif #endif -#if ! defined (HAVE_ALLOCA) || USE_STACK_ALLOC +#if ! defined (HAVE_ALLOCA) || defined (USE_STACK_ALLOC) #include "stack-alloc.h" #else #define TMP_DECL(m)