public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/10] perf parse-events: enable more flex/bison warnings
@ 2020-06-19  4:33 Ian Rogers
  2020-06-19  4:33 ` [PATCH v2 01/10] perf parse-events: Use automatic variable for flex input Ian Rogers
                   ` (11 more replies)
  0 siblings, 12 replies; 15+ messages in thread
From: Ian Rogers @ 2020-06-19  4:33 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
	Andi Kleen, Jin Yao, John Garry, Adrian Hunter, linux-kernel
  Cc: Stephane Eranian, Ian Rogers

All C compiler warnings are disabled are disabled by -w. This change
removes the -w from flex and bison targets. To avoid implicit
declarations header files are declared as targets and included.

Tested with GCC 9.3.0 and clang 9.0.1.

v2. predicates disabling the warnings on more recent bison and flex
    versions (3.5.3 and 2.6.4 respectively). An alternative would be
    to disabled a large number of warnings to cover the warnings
    generated in older distributions:
  flex_flags := -Wno-switch-enum -Wno-switch-default -Wno-unused-function \
    -Wno-redundant-decls -Wno-sign-compare -Wno-unused-parameter \
    -Wno-missing-prototypes -Wno-misleading-indentation
  bison_flags := -DYYENABLE_NLS=0 -Wno-unused-parameter -Wno-nested-externs \
    -Wno-implicit-function-declaration -Wno-switch-enum

Previously posted as a single change:
https://lore.kernel.org/lkml/20200609234344.3795-2-irogers@google.com/

Ian Rogers (10):
  perf parse-events: Use automatic variable for flex input
  perf parse-events: Use automatic variable for yacc input
  perf pmu: Add bison debug build flag
  perf pmu: Add flex debug build flag
  perf parse-events: Declare flex header file output
  perf parse-events: Declare bison header file output
  perf parse-events: Disable a subset of flex warnings
  perf expr: Avoid implicit lex function declaration
  perf parse-events: Avoid implicit lex function declaration
  perf parse-events: Disable a subset of bison warnings

 tools/perf/util/Build          | 62 +++++++++++++++++++++++-----------
 tools/perf/util/expr.y         |  2 ++
 tools/perf/util/parse-events.y |  1 +
 3 files changed, 46 insertions(+), 19 deletions(-)

-- 
2.27.0.111.gc72c7da667-goog


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-06-19 15:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-19  4:33 [PATCH v2 00/10] perf parse-events: enable more flex/bison warnings Ian Rogers
2020-06-19  4:33 ` [PATCH v2 01/10] perf parse-events: Use automatic variable for flex input Ian Rogers
2020-06-19  4:33 ` [PATCH v2 02/10] perf parse-events: Use automatic variable for yacc input Ian Rogers
2020-06-19  4:33 ` [PATCH v2 03/10] perf pmu: Add bison debug build flag Ian Rogers
2020-06-19  4:33 ` [PATCH v2 04/10] perf pmu: Add flex " Ian Rogers
2020-06-19  4:33 ` [PATCH v2 05/10] perf parse-events: Declare flex header file output Ian Rogers
2020-06-19  4:33 ` [PATCH v2 06/10] perf parse-events: Declare bison " Ian Rogers
2020-06-19  4:33 ` [PATCH v2 07/10] perf parse-events: Disable a subset of flex warnings Ian Rogers
2020-06-19  4:33 ` [PATCH v2 08/10] perf expr: Avoid implicit lex function declaration Ian Rogers
2020-06-19  4:33 ` [PATCH v2 09/10] perf parse-events: " Ian Rogers
2020-06-19  4:33 ` [PATCH v2 10/10] perf parse-events: Disable a subset of bison warnings Ian Rogers
2020-06-19 11:50 ` [PATCH v2 00/10] perf parse-events: enable more flex/bison warnings Arnaldo Carvalho de Melo
2020-06-19 12:15 ` Arnaldo Carvalho de Melo
2020-06-19 12:20   ` Arnaldo Carvalho de Melo
2020-06-19 15:15     ` Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox