From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6Ib9Kdhmb2C5GwAAWB0awg (envelope-from ) for ; Thu, 08 Apr 2021 16:26:00 -0400 Received: by simark.ca (Postfix, from userid 112) id A9D161EE0E; Thu, 8 Apr 2021 16:26:00 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 09ED91E590 for ; Thu, 8 Apr 2021 16:26:00 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C028C3954801; Thu, 8 Apr 2021 20:25:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C028C3954801 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617913559; bh=c2X98PAr5UjjWXXmcf0prOK32rE3BV5tTqHzUf+NCNs=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Elu4HQa5QIPzkjQUr67pLFf5j3181mlIPwd3HZ5anmfANtT/BhwzfGQ6rsBiB7KJv uzPsoV1rT6JK56je9aa7VmkkF+/Yju03leRxofelkmaxd+2DCoN2MayWF+Sf6TapUa T7EufrPrdPSmJfdcGeRKvwHV1TcdkI20mNs3lr90= Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by sourceware.org (Postfix) with ESMTPS id AAAC13857033 for ; Thu, 8 Apr 2021 20:25:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AAAC13857033 Received: by mail-qt1-x82e.google.com with SMTP id s2so2480435qtx.10 for ; Thu, 08 Apr 2021 13:25:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c2X98PAr5UjjWXXmcf0prOK32rE3BV5tTqHzUf+NCNs=; b=tNwfnMBdUXbMI/qttGiCliBJhfwQ5fTO1fkJLXlYwm84v9G7ETH0jr6ON+q+tfioYG JHUgwMZ26NVqpjJ2/JnkLe7ESJyrcOdoQiHQci0fVbds7ucbWb5979Z85SWMBO7/ah8Z V0BkEy7VGjSsUHNholvoW+tdldRT5QF9VTZ9giVVIVMrCxZCa/2u9/wmaEs28a3drG+b FNDuJAtlZuyvReJkLacZxdzfBYJtC0QGU96eCO1ThLiHgN38ZzCisi1qPgrQX5kkhJxJ 4JryGjA3eZ+eXh5peHhpquEdsw/c+ngwGyIwBI1sKkL4SCehhUoTU33LaHhyxUsd9dA8 oDkw== X-Gm-Message-State: AOAM533yDCnQ0cj361oaOwgSnenHxXgLLlRk1hMdjv6j6s1Zvh61qQNx vbZiLEoPexGCXCGg0bvrSfkR6DsHFs09Rw== X-Google-Smtp-Source: ABdhPJxe359yVu+liXObvWHyioxr7x/QJXIn/hKjyXFzY36dnH9CkMSQKBvOzXEhF5tuAbG7geb2uA== X-Received: by 2002:ac8:4697:: with SMTP id g23mr6124888qto.253.1617913557308; Thu, 08 Apr 2021 13:25:57 -0700 (PDT) Received: from ?IPv6:2804:7f0:4841:2841:5812:8068:979a:a62c? ([2804:7f0:4841:2841:5812:8068:979a:a62c]) by smtp.gmail.com with ESMTPSA id q3sm382964qtw.40.2021.04.08.13.25.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 13:25:57 -0700 (PDT) Subject: Re: [PATCH] [sim,rx] Silence warning that turns into a build error To: gdb-patches@sourceware.org References: <20210408195143.1349459-1-luis.machado@linaro.org> <07869142-e6ce-b480-56dc-334f2108e4b0@linaro.org> Message-ID: Date: Thu, 8 Apr 2021 17:25:55 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <07869142-e6ce-b480-56dc-334f2108e4b0@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb-patches Reply-To: Luis Machado Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 4/8/21 5:23 PM, Luis Machado wrote: > On 4/8/21 5:16 PM, Mike Frysinger wrote: >> On 08 Apr 2021 16:51, Luis Machado via Gdb-patches wrote: >>> +  FP_Parts a = {0, 0, 0, 0, 0}; >> >> wouldn't it be simpler & equiv: >>     FP_Parts a = {}; >> -mike >> > > I find that it works, but I'm unsure if it is a standard way of doing it. > > The C reference says: > > "When initializing an object of struct or union type, the initializer > must be a non-empty, brace-enclosed, comma-separated list of > initializers for the members." > > So I went with the most obvious, as opposed to going shorter and more > opaque. It may be the case that sim/ also builds with C++, like GDB. And {} would work for that then.