diff options
-rw-r--r-- | sql/sql_yacc.yy | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index c9dbc6fa8cc..51f6f6b28e4 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -70,6 +70,8 @@ #ifdef _MSC_VER /* warning C4065: switch statement contains 'default' but no 'case' labels */ #pragma warning (disable : 4065) +#elif defined(__clang__) || defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wunused-label" #endif int yylex(void *yylval, void *yythd); |