From: Rob Clark Date: Fri, 24 Jul 2020 21:27:41 +0000 (-0700) Subject: freedreno/afuc: warnings cleanup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b62e4a8e9e39d1adb87340b12d9fd31fb7c419ea;p=mesa.git freedreno/afuc: warnings cleanup Signed-off-by: Rob Clark Part-of: --- diff --git a/src/freedreno/afuc/lexer.l b/src/freedreno/afuc/lexer.l index aacc9473877..f78446011c2 100644 --- a/src/freedreno/afuc/lexer.l +++ b/src/freedreno/afuc/lexer.l @@ -26,6 +26,9 @@ #include "parser.h" #include "asm.h" +#define YY_NO_INPUT +#define YY_NO_UNPUT + #define TOKEN(t) (yylval.tok = t) extern YYSTYPE yylval; diff --git a/src/freedreno/afuc/parser.y b/src/freedreno/afuc/parser.y index 9f82286692c..5eb6e6a6a14 100644 --- a/src/freedreno/afuc/parser.y +++ b/src/freedreno/afuc/parser.y @@ -118,15 +118,6 @@ label(const char *str) const char *str; } -%{ -static void print_token(FILE *file, int type, YYSTYPE value) -{ - fprintf(file, "\ntype: %d\n", type); -} - -#define YYPRINT(file, type, value) print_token(file, type, value) -%} - %token T_INT %token T_HEX %token T_CONTROL_REG