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: 29095 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f70.google.com (mail-qg0-f70.google.com [209.85.192.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EA4C6203AC for ; Fri, 25 Apr 2014 16:12:01 +0000 (UTC) Received: by mail-qg0-f70.google.com with SMTP id i50sf7384708qgf.5 for ; Fri, 25 Apr 2014 09:12:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=NfE9xwmm1YEuQWQzsRNmOmHXOS6lVYhfgKVkm1+wVJk=; b=PvM5/5cdRmpTD79WbHy8EXAiCkyDr954YOlfJNAa+sxwdfcC8P+9qZysDggIWSw6Rt 9lpufX/IJpRxKr83UWSFm+yyZ5R+2XIDTdf9G/ZpTEw053yKVGcRLIg+QjV9B1qJqZpE sH7WN1pmuUJyg53rcoO7q28yRClc4rllPks6+OhQTt6dmv2RC3D5l0QBbSLjfPjv7Q2b G1YWDqDdfbiUBfWw1q4e4uz1Scn2FCrX63q31t4OgWI7tU0Z5cG/quPucsPXXeWzMT9X VjfR2nPGtypAhOcbKSUa5nCOga2S6xrFUbG2Glkwpezph2+qNNvc7aypmrXN5Nuwa3x7 Fx8w== X-Gm-Message-State: ALoCoQmQ5QulaiF0A61D0skBHNxjgpD9ttPKIsdrprk3NsWNszW7OHHWHv+eyHdwJfR5qtDH6QIb X-Received: by 10.236.231.52 with SMTP id k50mr4399362yhq.52.1398442321726; Fri, 25 Apr 2014 09:12:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.87 with SMTP id v81ls1655549qge.0.gmail; Fri, 25 Apr 2014 09:12:01 -0700 (PDT) X-Received: by 10.58.112.98 with SMTP id ip2mr938941veb.35.1398442321611; Fri, 25 Apr 2014 09:12:01 -0700 (PDT) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [2607:f8b0:400c:c01::229]) by mx.google.com with ESMTPS id xo2si1805617vec.62.2014.04.25.09.12.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 09:12:01 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=2607:f8b0:400c:c01::229; Received: by mail-ve0-f169.google.com with SMTP id pa12so5041626veb.0 for ; Fri, 25 Apr 2014 09:12:01 -0700 (PDT) X-Received: by 10.58.195.202 with SMTP id ig10mr1116179vec.33.1398442321547; Fri, 25 Apr 2014 09:12:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp109752vcb; Fri, 25 Apr 2014 09:12:01 -0700 (PDT) X-Received: by 10.68.143.196 with SMTP id sg4mr8604888pbb.155.1398442320788; Fri, 25 Apr 2014 09:12:00 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id vw5si5128702pab.415.2014.04.25.09.12.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Apr 2014 09:12:00 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-49301-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 3981 invoked by alias); 25 Apr 2014 16:11:50 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 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-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> X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 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)