mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
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;
|
||||
}
|
||||
|
||||
%{
|
||||
#ifdef __clang__
|
||||
# if __clang_major__ > 12
|
||||
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
# endif
|
||||
#endif
|
||||
%}
|
||||
|
||||
%%
|
||||
|
||||
start:
|
||||
|
|
Loading…
Reference in a new issue