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 8AB73A054D; Tue, 7 Jun 2022 17:13:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7ABB54021D; Tue, 7 Jun 2022 17:13:25 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 67A4C40156 for ; Tue, 7 Jun 2022 17:13:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654614802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2VfnWUbUC97cB0vLl1Sc0RUYXqF4rKdpnrXOddl9kAo=; b=DAQ1JK3RZym5WRJejFrkvCrg/IvgjBMNBl59sxyYLoho1HrjmSbCEBuGoWz6b+oqGc7my8 ea+vrM38Zj2PDsycWjCi1TsiWOSyRRQg7nExXhxJw6801KtRTpmY8620WiYMF9ihkRAXKJ STwdliFfiw1M04Q4ixqe4acrfypGt6c= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-675-I5bdMOC6OnaiLt3zcC1_0w-1; Tue, 07 Jun 2022 11:13:20 -0400 X-MC-Unique: I5bdMOC6OnaiLt3zcC1_0w-1 Received: by mail-lj1-f199.google.com with SMTP id t23-20020a2e7817000000b002555d1188bdso3146646ljc.4 for ; Tue, 07 Jun 2022 08:13:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2VfnWUbUC97cB0vLl1Sc0RUYXqF4rKdpnrXOddl9kAo=; b=kSv0VIcKRO6a4dTozlkrNAC+oIoTExAYZ2rAy/dn3gMssbINvd3scHXSLv1TEfLty8 yDkD8J4r8vu4WqIXisO2pIw7oiuJLtHX07U/4oS/ROt+BK+ndzvV0Gdv42oB8usbNd+O jQDWGkTZvcyn93XJZC4Wtjl2nbK8L4w053fcfmY0zyyo87cgtrqsEP9zfBv88Dz8Azqs yfNJabZwmN4OCGleoE2YdFCV0ufYbpuzSJYzuZpuUo6TuSvBOi1hGQGjXnWy+AOdAzvv R1NEyroyYmFOtZvMWXqIpM8byXgohiXYt/C1W1lr+vq60t9hERRY1c5c/soQ6VNpv/fz R4GQ== X-Gm-Message-State: AOAM531Dy4TInVMHsZG7CeLsnxRKIhhmsVFU2OeGsH1cny+qUMv7wCrQ bvmKsQPjR3xqTsHhzIZxPLrIh2FCVtCIo3Ekk0u/NpKWvuqbJk4LkHvxh4I0hStQfkjLu9PjClH opNvDJrOQELc+1rIRXzI= X-Received: by 2002:a05:651c:1781:b0:247:daa7:4358 with SMTP id bn1-20020a05651c178100b00247daa74358mr53946095ljb.477.1654614798978; Tue, 07 Jun 2022 08:13:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2PY3B5bzWneEvNvHRhaytQDQCVEhktARhU9bWoMu8zlqk8DlHa75Z1BeMAESyiYCCrixII/RLc9t47p5zHSk= X-Received: by 2002:a05:651c:1781:b0:247:daa7:4358 with SMTP id bn1-20020a05651c178100b00247daa74358mr53946072ljb.477.1654614798676; Tue, 07 Jun 2022 08:13:18 -0700 (PDT) MIME-Version: 1.0 References: <20220607025652.1114683-1-wenxuanx.wu@intel.com> <26640576.6Emhk5qWAg@thomas> <20220607080953.1f35df17@hermes.local> In-Reply-To: <20220607080953.1f35df17@hermes.local> From: David Marchand Date: Tue, 7 Jun 2022 17:13:07 +0200 Message-ID: Subject: Re: [PATCH] build: fix meson build when gcc >= 10.0 To: Stephen Hemminger Cc: Thomas Monjalon , Wenxuan Wu , Bruce Richardson , dev , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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, Jun 7, 2022 at 5:10 PM Stephen Hemminger wrote: > 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. I just merged them, though, afaics, they fix none of the compilation issues reported with gcc 12. -- David Marchand