From b9323dcbd1aa4a29a635acea738fbf1017cc11ad Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Wed, 20 Mar 2024 22:37:30 +0900 Subject: [PATCH] processor_sql: Remove a needless yywrap definition (#8609) Because `%option warn noyywrap nodefault` option is already specified in sql-parse.l and it seems that no need to define yywrap in sql-parser.y. Signed-off-by: Hiroshi Hatake --- plugins/processor_sql/parser/sql-parser.y | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/processor_sql/parser/sql-parser.y b/plugins/processor_sql/parser/sql-parser.y index 90afef6a5ec..3845ef3bdca 100644 --- a/plugins/processor_sql/parser/sql-parser.y +++ b/plugins/processor_sql/parser/sql-parser.y @@ -26,11 +26,6 @@ void yyerror (struct sql_query *query, void *scanner, const char *str) fprintf(stderr, "error: %s\n", str); } -int yywrap(struct sql_query *query) -{ - return 1; -} - %} /* EOF C code */