On Mon, Sep 11, 2023 at 10:06 AM Ian Rogers <irogers@xxxxxxxxxx> wrote: > > YYDEBUG enables line numbers and other error helpers in the generated > parse-events-bison.c. These shouldn't be generated when debugging > isn't enabled. > > Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx> Acked-by: Namhyung Kim <namhyung@xxxxxxxxxx> Thanks, Namhyung > --- > tools/perf/util/parse-events.y | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y > index ef03728b7ea3..786393106ae6 100644 > --- a/tools/perf/util/parse-events.y > +++ b/tools/perf/util/parse-events.y > @@ -6,7 +6,9 @@ > > %{ > > +#ifndef NDEBUG > #define YYDEBUG 1 > +#endif > > #include <errno.h> > #include <linux/compiler.h> > -- > 2.42.0.283.g2d96d420d3-goog >