summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-09-21 18:02:04 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-09-22 14:08:51 +0300
commit21d19ed45b1b71c2815559a8ad68888a4bfe902f (patch)
tree0d1a8e65058c9b89943cf5fa7a38fc4312d6c918
parentac1c6738f973498e2d136d5e419b961c151aa318 (diff)
downloadmariadb-git-21d19ed45b1b71c2815559a8ad68888a4bfe902f.tar.gz
Silence a warning about unused Bison label
-rw-r--r--sql/sql_yacc.yy3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index c9dbc6fa8cc..0f6773c899d 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -71,6 +71,9 @@
/* warning C4065: switch statement contains 'default' but no 'case' labels */
#pragma warning (disable : 4065)
#endif
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Wunused-label" /* yyexhaustedlab: */
+#endif
int yylex(void *yylval, void *yythd);