forked from Mirror/frr
lib: disable clang warning in parser yacc output
Disable a clang 'unused' warning in the yacc source of command_parse.c. Signed-off-by: Mark Stapp <mjs@cisco.com>
This commit is contained in:
parent
1ca756f315
commit
c65fdc9a49
|
@ -158,6 +158,14 @@
|
||||||
ctx->docstr_start = ctx->docstr;
|
ctx->docstr_start = ctx->docstr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%{
|
||||||
|
#ifdef __clang__
|
||||||
|
# if __clang_major__ > 12
|
||||||
|
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
|
||||||
start:
|
start:
|
||||||
|
|
Loading…
Reference in a new issue