perf build: Disable fewer bison warnings
[platform/kernel/linux-starfive.git] / tools / perf / util / expr.y
index dd504af..65d54a6 100644 (file)
@@ -7,6 +7,8 @@
 #include "util/debug.h"
 #define IN_EXPR_Y 1
 #include "expr.h"
+#include "expr-bison.h"
+int expr_lex(YYSTYPE * yylval_param , void *yyscanner);
 %}
 
 %define api.pure full
@@ -56,7 +58,7 @@
 static void expr_error(double *final_val __maybe_unused,
                       struct expr_parse_ctx *ctx __maybe_unused,
                       bool compute_ids __maybe_unused,
-                      void *scanner,
+                      void *scanner __maybe_unused,
                       const char *s)
 {
        pr_debug("%s\n", s);