diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-06-16 21:14:45 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-06-16 21:30:11 +0300 |
commit | d49315affaf435f1e9852a3ce84101e28fe765bf (patch) | |
tree | 9dbb6ea2412f5d8fdf2cfd42feeb677bcba02af1 /contrib/tools/bison/data | |
parent | be56f24a02c348ff838c00269b9fb9ed8857a07c (diff) | |
download | ydb-d49315affaf435f1e9852a3ce84101e28fe765bf.tar.gz |
Ignore warnings from bison, do not try to fix them
Some attempts to fix `-Wimplicit-fallthrough` are also visible.
This warning was not enabled by default so there should be no need to ignore it.
c285009965d42ab59060edad82d2af1715d686b8
Diffstat (limited to 'contrib/tools/bison/data')
-rw-r--r-- | contrib/tools/bison/data/lalr1.cc | 2 | ||||
-rw-r--r-- | contrib/tools/bison/data/yacc.c | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/contrib/tools/bison/data/lalr1.cc b/contrib/tools/bison/data/lalr1.cc index 7ff15234bd..f4f51c78c7 100644 --- a/contrib/tools/bison/data/lalr1.cc +++ b/contrib/tools/bison/data/lalr1.cc @@ -711,7 +711,7 @@ m4_if(b4_prefix, [yy], [], int yylen = 0; // Error handling. - __attribute__((unused)) int yynerrs_ = 0; + int yynerrs_ = 0; int yyerrstatus_ = 0; /// The lookahead symbol. diff --git a/contrib/tools/bison/data/yacc.c b/contrib/tools/bison/data/yacc.c index 9fa369c8b2..822656b8d8 100644 --- a/contrib/tools/bison/data/yacc.c +++ b/contrib/tools/bison/data/yacc.c @@ -198,7 +198,7 @@ int yynerrs;]])]) # between calls to yypush_parse. m4_define([b4_declare_parser_state_variables], [b4_pure_if([[ /* Number of syntax errors so far. */ - __attribute__((unused)) int yynerrs; + int yynerrs; ]])[ int yystate; /* Number of tokens to shift before error messages enabled. */ @@ -770,7 +770,6 @@ int yydebug; # define YYMAXDEPTH ]b4_stack_depth_max[ #endif]b4_lac_if([[ - /* Given a state stack such that *YYBOTTOM is its bottom, such that *YYTOP is either its top or is YYTOP_EMPTY to indicate an empty stack, and such that *YYCAPACITY is the maximum number of elements it @@ -1054,11 +1053,6 @@ yy_lac (yytype_int16 *yyesa, yytype_int16 **yyes, backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ -#ifdef __cplusplus -# define BISON_FALLTHROUGH [[fallthrough]] -#else -# define BISON_FALLTHROUGH -#endif static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { @@ -1077,7 +1071,7 @@ yytnamerr (char *yyres, const char *yystr) case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; - BISON_FALLTHROUGH; + /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; |