From patchwork Sat Aug 2 00:19:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 34739 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7B12F2062F for ; Sat, 2 Aug 2014 00:20:23 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id eu11sf33083773pac.3 for ; Fri, 01 Aug 2014 17:20:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=sQcrwkG7tYEQduWXvFlXUiWae3VpbZW76I/jOAfolyk=; b=C18giBf0KUGcwwmBsDz0Z16V4R+dOA6RDsBGY+FkojJOfd+in2nyNq23V0cJGZyU7Z yp9vjrDD97oFUREuCkS4Zq4TqUTpJMD/nSuRlJAm/LbcmN/hBpsQMOJiqfKLH+YxkkpV 2qAzM38EzcGfsPnzOa4A1b4YIh6DkvrrTtLez5DuinpW+IlJD5goCvuX9bj/YfYKX0mm 6A9vc6CpSnCIkHPvmYmxWvLrhdurCTWA3D7ivbI99IKrhYOvp4bXZqCO/Np4affZSycA LBBhh+eEj75hExZzvr7O7dYPAcBljqHlb+GwG1MlK71eHed78f0xaGhDVMCLr8AGzxTM urKg== X-Gm-Message-State: ALoCoQnjMcJ/JKYZVDZrXZDI3igsQLV9ssm2U5XNyuZxVTFT0C7WSaWV66mvYopVMCIzoUv1lWRU X-Received: by 10.66.246.229 with SMTP id xz5mr3679278pac.34.1406938822217; Fri, 01 Aug 2014 17:20:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.244 with SMTP id p107ls1602046qgp.50.gmail; Fri, 01 Aug 2014 17:20:22 -0700 (PDT) X-Received: by 10.52.28.231 with SMTP id e7mr8986355vdh.55.1406938822102; Fri, 01 Aug 2014 17:20:22 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id or9si8740797vcb.81.2014.08.01.17.20.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 17:20:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so7883681vcb.30 for ; Fri, 01 Aug 2014 17:20:21 -0700 (PDT) X-Received: by 10.52.144.14 with SMTP id si14mr5298338vdb.95.1406938821753; Fri, 01 Aug 2014 17:20:21 -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.221.37.5 with SMTP id tc5csp147106vcb; Fri, 1 Aug 2014 17:20:21 -0700 (PDT) X-Received: by 10.42.216.148 with SMTP id hi20mr11532407icb.12.1406938821060; Fri, 01 Aug 2014 17:20:21 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id k6si9892037igx.8.2014.08.01.17.20.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 01 Aug 2014 17:20:21 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XDN3U-0003oi-MY; Sat, 02 Aug 2014 00:20:12 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XDN3S-0003oc-Fq for edk2-devel@lists.sourceforge.net; Sat, 02 Aug 2014 00:20:10 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=lersek@redhat.com; helo=mx1.redhat.com; Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1XDN3Q-0007cD-Ml for edk2-devel@lists.sourceforge.net; Sat, 02 Aug 2014 00:20:10 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s720K27C020873 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 1 Aug 2014 20:20:02 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s720Jx8Z014926 for ; Fri, 1 Aug 2014 20:20:01 -0400 From: Laszlo Ersek To: edk2-devel@lists.sourceforge.net Date: Sat, 2 Aug 2014 02:19:56 +0200 Message-Id: <1406938797-25234-2-git-send-email-lersek@redhat.com> In-Reply-To: <1406938797-25234-1-git-send-email-lersek@redhat.com> References: <1406938797-25234-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -2.2 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1XDN3Q-0007cD-Ml Subject: [edk2] [PATCH 1/2] StdLib/LibC/gdtoa: fix "missing braces around initializer" X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lersek@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The member "u.L" is an array, and the current initializer triggers StdLib/LibC/gdtoa/strtof.c: In function '_strtof': StdLib/LibC/gdtoa/strtof.c:53:9: error: missing braces around initializer [-Werror=missing-braces] StdLib/LibC/gdtoa/strtof.c:53:9: error: (near initialization for 'u.L') [-Werror=missing-braces] cc1: all warnings being treated as errors Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- StdLib/LibC/gdtoa/strtof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StdLib/LibC/gdtoa/strtof.c b/StdLib/LibC/gdtoa/strtof.c index 44a4cb3..3b4b52c 100644 --- a/StdLib/LibC/gdtoa/strtof.c +++ b/StdLib/LibC/gdtoa/strtof.c @@ -50,7 +50,7 @@ strtof(CONST char *s, char **sp) ULong bits[1]; Long expt; int k; - union { ULong L[1]; float f; } u = { 0 }; + union { ULong L[1]; float f; } u = { { 0 } }; k = strtodg(s, sp, &fpi, &expt, bits); if (k == STRTOG_NoMemory) {