From patchwork Sat Aug 2 00:19:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 34740 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C7D6220540 for ; Sat, 2 Aug 2014 00:20:24 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wn1sf21211805obc.2 for ; Fri, 01 Aug 2014 17:20:24 -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=3MDeogXUaoShAuUkSYzDO4r0Eq7dl6kJwEH4n9eLXmQ=; b=g8DGHIFsNunRo/d1OaSq7ZgnPIOQ9ahOPnAag8utvJuGx9Olb3+dk9+0peIyzUPcHo SfggvCxuc/ndptlzBSB+19JItSd/uuc0mfgOsuabBrZGOCot/gSkAqOXIImoveK0iaUL itrVYuZTIwRBqwTK+1ntSTwjDqVQvkkLIuoh8AmuZ7FbXi4DsVq/FmaxH0s1G+FUyfmX G+NIqDYnSHV4sDc8a5ylzq3xvNOnK5NSknX+QmjNpelGxQfdWnzCJfO360T3wnhdH7f6 q413ppa5GSY2iypG0WNnuoMucuUTRG7Uoznm0vjdmKmJLwf8jIzehTrdgKB1li7b5lky wS2A== X-Gm-Message-State: ALoCoQl9EFbqnzvVf5GKH2ZswaNh2gu17+P12ZWlvzMGblyjGwh5gGqOxtNl5Q0g8Ya2KGYoZtqs X-Received: by 10.50.57.111 with SMTP id h15mr3545818igq.3.1406938824412; Fri, 01 Aug 2014 17:20:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.97.52 with SMTP id l49ls1512147qge.69.gmail; Fri, 01 Aug 2014 17:20:24 -0700 (PDT) X-Received: by 10.53.10.65 with SMTP id dy1mr5341331vdd.92.1406938824328; Fri, 01 Aug 2014 17:20:24 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id nc1si8763492veb.6.2014.08.01.17.20.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 17:20:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ik5so7894807vcb.34 for ; Fri, 01 Aug 2014 17:20:24 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr9085197vdc.8.1406938824256; Fri, 01 Aug 2014 17:20:24 -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 tc5csp147113vcb; Fri, 1 Aug 2014 17:20:23 -0700 (PDT) X-Received: by 10.42.82.6 with SMTP id b6mr11299928icl.51.1406938823660; Fri, 01 Aug 2014 17:20:23 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id ij6si9852749igb.41.2014.08.01.17.20.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 01 Aug 2014 17:20:23 -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-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XDN3T-0004mq-I7; Sat, 02 Aug 2014 00:20:11 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XDN3S-0004mi-7u 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-0007cE-Te 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 s720K3H8023852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 1 Aug 2014 20:20:03 -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 s720Jx8a014926 for ; Fri, 1 Aug 2014 20:20:02 -0400 From: Laszlo Ersek To: edk2-devel@lists.sourceforge.net Date: Sat, 2 Aug 2014 02:19:57 +0200 Message-Id: <1406938797-25234-3-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-0007cE-Te Subject: [edk2] [PATCH 2/2] StdLib/LibC/Stdio: 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.175 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 "fext._ub" is a structure (of type "struct __sbuf"), and the current initializer triggers StdLib/LibC/Stdio/vswscanf.c: In function 'vswscanf': StdLib/LibC/Stdio/vswscanf.c:75:10: error: missing braces around initializer [-Werror=missing-braces] StdLib/LibC/Stdio/vswscanf.c:75:10: error: (near initialization for 'fext._ub') [-Werror=missing-braces] cc1: all warnings being treated as errors Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- StdLib/LibC/Stdio/vswscanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StdLib/LibC/Stdio/vswscanf.c b/StdLib/LibC/Stdio/vswscanf.c index 3f62666..254f0b2 100644 --- a/StdLib/LibC/Stdio/vswscanf.c +++ b/StdLib/LibC/Stdio/vswscanf.c @@ -72,7 +72,7 @@ vswscanf( size_t mlen; int r; const wchar_t *rstr = str; - struct __sfileext fext = { 0 }; + struct __sfileext fext = { { 0 } }; /* * XXX Convert the wide character string to multibyte, which