Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp946929rwb; Fri, 28 Jul 2023 02:15:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFuxCP5VJJVCi6iEDl+/RsIWf56/7Q4v37Qfao1msJwTUxGryqC5VsMdiiCUy5ORLacQ0Jf X-Received: by 2002:a05:6512:23a5:b0:4f9:cb8f:3182 with SMTP id c37-20020a05651223a500b004f9cb8f3182mr1661388lfv.25.1690535710274; Fri, 28 Jul 2023 02:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690535710; cv=none; d=google.com; s=arc-20160816; b=RxYf8rydfOjsMMOpPsHEGcgBs/G/axnWqJ2LTdSSUfuaULrk8mkw378t3mCAh2ArU9 6RgWwms1Zj3Zm4+RE1q0Lay2XHJmVus7G9n1O5N/4fUBjk9V6ECN2qLSpLNIJFhCskDa W1LfPfPQnE60WXZjK+nb5fO67N5LOdC4oKp4EifHtGs4YhH/EGGLcC7d2GgwAKD+c8IG w+PBdUt6zdbj5+P4/HCWdzB4LbF8Z6ZzViFTtZOXRvMMi3YFGguHFSFloaIvmO8azgIA aFg8RiWny4vyudmNgXIlZrDoz6P1z7ES+pJgkVEbMscMQ0L4zBMl2w5HXgcSZJ1kITjK 37jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=Qx3TJwNbJV3PChQVilbecFF7WV84ukq8P3L+8PXxrbo=; fh=IV2eg7m2u5JQ7fqTLeIvC5s8kjpEmjr80Fgc1Cpu4Zk=; b=iCogpvSlC6jyCJA7zrUJV9tFOnfExP6dBIp1w9nl9IxdDOw0rXQUI7we3ujaqX67mT zjGMcQyecRA3YdBKmZ3QUQ4LZWR1To3w8o+lX0ROK55FNwaYCETjPeHZEI72uJ4VUT+b ad42vLeg0d90ABYThZ952umM+jgYRrFds0sumRaQFcHa0d8eD4GTSbgYLg8H714FRQB8 Bi2LalQ8Cx3VfrmAuPteozyA/1MRGUtnhU8HxZLquTYhrcvOc2+RzJ4kmVUcJuT0u5hn kqfSpFOjZPSD4VwOxaU+Dv0mJorpLvdJ1CGowjWxEHLqWAuzke6VymBQg3Iw2GBQbTXF 3pTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020aa7c653000000b005224f5f0799si2144789edr.625.2023.07.28.02.14.38; Fri, 28 Jul 2023 02:15:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233758AbjG1I5v (ORCPT + 99 others); Fri, 28 Jul 2023 04:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233450AbjG1I5r (ORCPT ); Fri, 28 Jul 2023 04:57:47 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4894E106; Fri, 28 Jul 2023 01:57:46 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1FA95D75; Fri, 28 Jul 2023 01:58:29 -0700 (PDT) Received: from [10.57.0.116] (unknown [10.57.0.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 03EA73F67D; Fri, 28 Jul 2023 01:57:42 -0700 (PDT) Message-ID: Date: Fri, 28 Jul 2023 09:57:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 3/6] perf build: Add Wextra for C++ compilation Content-Language: en-US To: Ian Rogers References: <20230728064917.767761-1-irogers@google.com> <20230728064917.767761-4-irogers@google.com> Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , Kan Liang , Eduard Zingerman , Andrii Nakryiko , Gaosheng Cui , Rob Herring , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev From: James Clark In-Reply-To: <20230728064917.767761-4-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/07/2023 07:49, Ian Rogers wrote: > Commit d58ac0bf8d1e ("perf build: Add clang and llvm compile and > linking support") added -Wall and -Wno-strict-aliasing for CXXFLAGS, > but not -Wextra. -Wno-strict-aliasing is no longer necessary, adding > -Wextra for CXXFLAGS requires adding -Wno-unused-parameter clang.cpp > and clang-test.cpp for LIBCLANGLLVM=1 to build. > > Signed-off-by: Ian Rogers > --- > tools/perf/Makefile.config | 2 +- > tools/perf/util/c++/Build | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index 14709a6bd622..fe7afe6d8529 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -333,8 +333,8 @@ CORE_CFLAGS += -std=gnu11 > > CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti > CXXFLAGS += -Wall > +CXXFLAGS += -Wextra > CXXFLAGS += -fno-omit-frame-pointer > -CXXFLAGS += -Wno-strict-aliasing > > HOSTCFLAGS += -Wall > HOSTCFLAGS += -Wextra > diff --git a/tools/perf/util/c++/Build b/tools/perf/util/c++/Build > index 613ecfd76527..8610d032ac19 100644 > --- a/tools/perf/util/c++/Build > +++ b/tools/perf/util/c++/Build > @@ -1,2 +1,5 @@ > perf-$(CONFIG_CLANGLLVM) += clang.o > perf-$(CONFIG_CLANGLLVM) += clang-test.o > + > +CXXFLAGS_clang.o += -Wno-unused-parameter > +CXXFLAGS_clang-test.o += -Wno-unused-parameter Acked-by: James Clark