diff options
| author | Mark Stapp <mjs@cisco.com> | 2025-04-16 11:37:33 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2025-04-16 13:50:21 -0400 |
| commit | c65fdc9a4972cc6c29eda53f47b445aac6d6a5fb (patch) | |
| tree | 3799554a9aaa1c4dff4d70e6a57a4da86bc903ae | |
| parent | 1ca756f315949b883584411bfe135f3b93f2b047 (diff) | |
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>
| -rw-r--r-- | lib/command_parse.y | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y index 8867e98ccc..6758aed142 100644 --- a/lib/command_parse.y +++ b/lib/command_parse.y @@ -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: |
