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 550CB45B14; Fri, 11 Oct 2024 19:57:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 745B940E25; Fri, 11 Oct 2024 19:57:24 +0200 (CEST) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id D875C40E21 for ; Fri, 11 Oct 2024 19:57:22 +0200 (CEST) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-20c77459558so18415335ad.0 for ; Fri, 11 Oct 2024 10:57:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728669442; x=1729274242; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DkUYx/JyQp4Km4bqoASdT2l5DH1agineGMBb3n5JQF8=; b=zqDhvLdyeRr9YbyK6DvArD2pe8VcRVYJnEV1au2j74BHs4ZtIdcY4FgnnQGGn+zzzZ jnYHzaQZUwc0TB7AZEkaO53J/bhg9Yq+sFF5imKG92kWFGdhXs/3ToW7R75mo+dwznZc tRxd44GO0SAhDwKqsNK4Zuye5BFq807rdSywghSMk+xQIK/h8uNUzRkpPPIAjPkwADBV bNWuetrlPyczg+44jN2DQQA5Iog/jddxm9tQm/D0K200gRKklLlVP1rEL6FKOVb0oaqa +2M9zxWu9kayqs1rpvU9tV4l7lDdu+2Mcq5oljjGBH91oEbEX1AaOERqwAubU9UPJ7jK Kn4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728669442; x=1729274242; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DkUYx/JyQp4Km4bqoASdT2l5DH1agineGMBb3n5JQF8=; b=eznf/mkvq2iN03dGkyaEpa0Pn0ggJ4cXfT62rR1bNI5ArCsEWOJPq/odHOu9DEjxE0 qJ0tM5JIOAfULZ3bvv9S61ROtj0V3wldESpkdUhEoZE1tgOPSXJsEk6ypyp5+bcxZUty ZcHaGofwfla82kBQHexVTVvkNVSya8GdIPDa/frU1vIjKIydmvJDT1+g8PyqfbYuK0Ie mqc3JOedWvLIryWqoBDrFTivTzLI0ZKJXX+Hf82iYwFBCnkwFT8IsLVeAi4g/aTgQYsq 2ZgPfjLseCLQQQBSBG6OS/XgDx/iU0TVE17f7Lnq2BJ4/+b12zsM0nKf8WUuyRWbkXzz yvVw== X-Gm-Message-State: AOJu0Yyu7wZG2vu3PkDfYuP8u2abbXisUiVq3ffTMQSlRcLERjG5Dn6y w99m+6enPKpdTJDPQfV3v29hedLIrbC+qYJVu+19dbOMvu/x4p95YPpTbKd7u9bVXmfautLV7sx P X-Google-Smtp-Source: AGHT+IG77/kwxtRvDM3pYHUAE7wS658SiEJ5WpTx3X5tdZlgTHA6Xcj4PwL+araItjr0ndcq4Twijg== X-Received: by 2002:a17:902:d510:b0:20c:b0c7:92c9 with SMTP id d9443c01a7336-20cb0c79859mr22001365ad.34.1728669442028; Fri, 11 Oct 2024 10:57:22 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8bc0ca82sm25904365ad.68.2024.10.11.10.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 10:57:21 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson Subject: [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning" Date: Fri, 11 Oct 2024 10:57:10 -0700 Message-ID: <20241011175710.314016-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The zero length array warning can be re-enabled. The zero length marker fields are now removed by commit 9e152e674c77 ("mbuf: remove marker fields") in DPDK 24.03. This reverts commit cfacbcb5a23bc26cb913528c372adddabbb33ca1. Signed-off-by: Stephen Hemminger --- config/meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/meson.build b/config/meson.build index 8c8b019c25..38f25f9ce3 100644 --- a/config/meson.build +++ b/config/meson.build @@ -330,10 +330,7 @@ warning_flags = [ '-Wno-packed-not-aligned', '-Wno-missing-field-initializers', ] -if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') -# FIXME: Bugzilla 396 - warning_flags += '-Wno-zero-length-bounds' -endif + if not dpdk_conf.get('RTE_ARCH_64') # for 32-bit, don't warn about casting a 32-bit pointer to 64-bit int - it's fine!! warning_flags += '-Wno-pointer-to-int-cast' -- 2.45.2