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:
Mark Stapp 2025-04-16 11:37:33 -04:00
parent 1ca756f315
commit c65fdc9a49

View file

@ -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: