From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CC692A050A for ; Wed, 30 Mar 2022 14:13:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C13A84013F; Wed, 30 Mar 2022 14:13:44 +0200 (CEST) Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by mails.dpdk.org (Postfix) with ESMTP id 479024013F for ; Wed, 30 Mar 2022 14:13:43 +0200 (CEST) Received: by mail-ej1-f43.google.com with SMTP id qa43so41068388ejc.12 for ; Wed, 30 Mar 2022 05:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DAx4c38G7hLSGUsbP+gS75YD5zcOBAQ4EmYzTkrey0s=; b=fqnkAURm5ITqdRrM6sn1rs1Nt2nUdgXnrxaFjjrIfi3xiiI4WMnAbDQ/l1bRlyQOmk +DOtfafoGyXdRDAbXgwXxS/XxZH+lH83zm69OOBJqPrrEt/U772d7IoUYD2CIACS5yv6 Zv2hZtjZxgxSfadiUnaOOujeFqV1YLVjljAKvD3mN2NoVcBkcX6f6ZKPRj6dRWHv24SH b58IOpBMJX4LzBE27SJWwhaQ2tYmSKh55ZbmD3WdDMMa6FIfwEtHCvLF7IUBFfpzYTzU 7KO647Gbr/v4JDFWMSFN/QA7QNTZPZPKJc1D2+wypmGIM15t2hDq1StoS4F4BWUQZiZ2 paMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DAx4c38G7hLSGUsbP+gS75YD5zcOBAQ4EmYzTkrey0s=; b=mw+1Dlni5+789eGtgH8rrHcGE0NtUzXyBfosQbITqVHTYk0hNu/kUpkjy/wU/lxK3u WuXLjt+AQibAKtZIsu1L5DXJr8JLKmyqLynwJ7hsWLqWAUWI7DZzkDMIUjOLUaNsj6EA +Ni9eSEA/jo28M97+y0Tw+ghY2Ej7kcF6TtCYNOAJsNPj2sdaXpsueITDniiHBKAV4Ge TjGDRZYcnhNYO4gasdGcOE4ipFiIn7MQ3bAYuaSeuFKMAkhPEeLN4FuDGJZq79Wbwqsm xNisYsbU1p+dsjyQZ5Tl/uxFjJ94wsdMeq0OXVrXHH591W6LW26SpP2UwkRjKrKRKIyE CwJw== X-Gm-Message-State: AOAM531J75CRMEC+uJOv9Jn14e4FiYxUfPI2rjyVrlHCYlNtdT2mWzME TxioifBaA2RDLSATNy7pppHF/rL8pLBrOg== X-Google-Smtp-Source: ABdhPJwH+gueUuyqNmBnwByKHr/G+/ir8KhdPfClQKs1gZuU0ZejwXS9GjS2MHrC9bR+ytVtqLJZ7Q== X-Received: by 2002:a17:907:2cc6:b0:6e0:2196:9278 with SMTP id hg6-20020a1709072cc600b006e021969278mr39600910ejc.438.1648642422219; Wed, 30 Mar 2022 05:13:42 -0700 (PDT) Received: from localhost ([2a01:4b00:f41a:3600:360b:9754:2e3a:c344]) by smtp.gmail.com with ESMTPSA id g9-20020aa7c849000000b00412fc6bf26dsm9960709edt.80.2022.03.30.05.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 05:13:41 -0700 (PDT) From: luca.boccassi@gmail.com To: stable@dpdk.org Cc: christian.ehrhardt@canonical.com, Luca Boccassi Subject: [PATCH 19.11 20.11] pmdinfogen: fix compilation with Clang 3.4.2 on CentOS 7 Date: Wed, 30 Mar 2022 13:12:25 +0100 Message-Id: <20220330121225.322838-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Luca Boccassi $ meson --werror --buildtype=debugoptimized build && ninja-build -C build [..] [5/2516] Compiling C object buildtools/pmdinfogen/pmdinfogen.p/pmdinfogen.c.o FAILED: buildtools/pmdinfogen/pmdinfogen.p/pmdinfogen.c.o clang -Ibuildtools/pmdinfogen/pmdinfogen.p -Ibuildtools/pmdinfogen -I../../root/dpdk/buildtools/pmdinfogen -I. -I../../root/dpdk -Iconfig -I../../root/dpdk/config -Ilib/librte_eal/include -I../../root/dpdk/lib/librte_eal/include -Ilib/librte_eal/linux/include -I../../root/dpdk/lib/librte_eal/linux/include -Ilib/librte_eal/x86/include -I../../root/dpdk/lib/librte_eal/x86/include -Ilib/librte_pci -I../../root/dpdk/lib/librte_pci -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -MD -MQ buildtools/pmdinfogen/pmdinfogen.p/pmdinfogen.c.o -MF buildtools/pmdinfogen/pmdinfogen.p/pmdinfogen.c.o.d -o buildtools/pmdinfogen/pmdinfogen.p/pmdinfogen.c.o -c ../../root/dpdk/buildtools/pmdinfogen/pmdinfogen.c ../../root/dpdk/buildtools/pmdinfogen/pmdinfogen.c:431:27: error: missing field 'hdr' initializer [-Werror,-Wmissing-field-initializers] struct elf_info info = {0}; ^ 1 error generated. [..] Use structured initialization Bugzilla ID: 984 Signed-off-by: Luca Boccassi --- buildtools/pmdinfogen/pmdinfogen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/pmdinfogen/pmdinfogen.c b/buildtools/pmdinfogen/pmdinfogen.c index a68d1ea999..534ed9f3c8 100644 --- a/buildtools/pmdinfogen/pmdinfogen.c +++ b/buildtools/pmdinfogen/pmdinfogen.c @@ -428,7 +428,7 @@ static void output_pmd_info_string(struct elf_info *info, char *outfile) int main(int argc, char **argv) { - struct elf_info info = {0}; + struct elf_info info = {}; int rc = 1; if (argc < 3) { -- 2.34.1