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 51BEEA054D; Tue, 7 Jun 2022 17:10:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE25C4021D; Tue, 7 Jun 2022 17:10:00 +0200 (CEST) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mails.dpdk.org (Postfix) with ESMTP id 7336040156 for ; Tue, 7 Jun 2022 17:09:59 +0200 (CEST) Received: by mail-pg1-f182.google.com with SMTP id 129so16138065pgc.2 for ; Tue, 07 Jun 2022 08:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fL3fXZi2JDbHetAB0Go6e5C9ynhxlBPK1o0QDkQmmRw=; b=pfCqQeZYb86oTNceIFTwblASHYjoUslqVtLRXdZWomE8+kasGuVMu/VsC5EAAWqa6V HJLa5lx8KCSSp3rzXViVs5sawz6NpqxA3TcoNXAFq2F53Dp1gRQkLV5+x6t9W8va+8tE Y6dzr3TPxp2xOMQYLfDSMmiemK/8KNVF5t0iFo2xwi1fjCE+vP64Up+c10DwgWo5UF5J VmdNCSIpwoonKcx/ag3LE/Zh6N1i3w/wOM62jvtMs9UB6KKxzrgw1GyJFuTgXW8xdJtX Ks1dCfSiE6t/1HXHCfhfWvIySDIbye+q9k68sw6HR78ASdtZdiQXNqr9tcw4C5VtqmoR KSiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fL3fXZi2JDbHetAB0Go6e5C9ynhxlBPK1o0QDkQmmRw=; b=NZNgeAxerfuYSG+X59fWGc8OPu8otNIhUP5CqWrG4rWVZUQO07XGlXiOhjrCXvIccr FBdubHaZCWHePp04I0AqvTbS+LN0/O21KHAXTqmj4GE9EtQPO4ZUwjqSg+JuolezdlSM KpfApN+lghCnjXIdIO8vNYGS5shGkvHhg0ZG0THV05j3rteey8hyFTrJq/k3THt7bX8T 4RubM3zNuQr4N1dtiiNkNA1Ca2Z7LH+sZbkKI2gYKLU30XqF+wM/dw8s4eq/hE7RfQIR HoNF01770NAhpRTWu6kLYxaT57SlkukbzGBzoCIFdm56SjbFkrFXU7eP6J5gshMu6Td9 8hHQ== X-Gm-Message-State: AOAM533QRowAs9wuC0taS5wWmbhvfFLja82KVZjnw5ngKIx1SIm86oPb kjfnDpYX8qMmgWtTJsRvSI9MBg== X-Google-Smtp-Source: ABdhPJyAU7XlS0dUWZDs37NJ09wPxJKQ8x76VMUAqnBq3hOFOpP43bKu1LrDObr+tx/3Ak/CJ/793g== X-Received: by 2002:a65:6e88:0:b0:39d:2647:f75d with SMTP id bm8-20020a656e88000000b0039d2647f75dmr26146543pgb.523.1654614598583; Tue, 07 Jun 2022 08:09:58 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id z14-20020a1709027e8e00b001676dac529asm5636457pla.146.2022.06.07.08.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 08:09:58 -0700 (PDT) Date: Tue, 7 Jun 2022 08:09:53 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: Wenxuan Wu , bruce.richardson@intel.com, dev@dpdk.org, stable@dpdk.org, david.marchand@redhat.com Subject: Re: [PATCH] build: fix meson build when gcc >= 10.0 Message-ID: <20220607080953.1f35df17@hermes.local> In-Reply-To: <26640576.6Emhk5qWAg@thomas> References: <20220607025652.1114683-1-wenxuanx.wu@intel.com> <26640576.6Emhk5qWAg@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Tue, 07 Jun 2022 12:52:32 +0200 Thomas Monjalon wrote: > 07/06/2022 04:56, wenxuanx.wu@intel.com: > > From: Wenxuan Wu > > > > GCC version greater than 10.0, with compile option -O2, several warnings info would appear, > > this fix omitted these warnings. > [...] > > # FIXME: Bugzilla 396 > > - warning_flags += '-Wno-zero-length-bounds' > > + warning_flags += [ > > + '-Wno-zero-length-bounds', > > + '-Wno-stringop-overflow', > > + '-Wno-array-bounds', > > + '-Wno-format-overflow', > > The compilers are reported warnings to help us having a better code. > We should try to resolve the warnings, not hiding them. > > Agree with Thomas. This not how to address this. There are fixes already for the zero-length-bounds that are being merged. Patches accepted to fix the rest.