Skip to content

Commit 21d19ed

Browse files
committed
Silence a warning about unused Bison label
1 parent ac1c673 commit 21d19ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/sql_yacc.yy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
/* warning C4065: switch statement contains 'default' but no 'case' labels */
7272
#pragma warning (disable : 4065)
7373
#endif
74+
#ifdef __GNUC__
75+
#pragma GCC diagnostic ignored "-Wunused-label" /* yyexhaustedlab: */
76+
#endif
7477

7578
int yylex(void *yylval, void *yythd);
7679

0 commit comments

Comments
 (0)