summaryrefslogtreecommitdiff
path: root/lib/command_parse.y
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-04-17 18:38:21 -0400
committerGitHub <noreply@github.com>2025-04-17 18:38:21 -0400
commit5d4c7d2ece3e1da480d7afbad645ba8e5bf92f1c (patch)
tree0eaefe2a19548743e531587c54e1fca28c538464 /lib/command_parse.y
parent0850ae7db7257a4db19b072a9c6b28b8ff9f9605 (diff)
parent2d423186259246cba7ba0aaceab2f70a4bce00f0 (diff)
Merge pull request #18675 from mjstapp/fix_clang_18_warnings
lib,pimd,bgpd,bfdd: Fix clang 18 warnings
Diffstat (limited to 'lib/command_parse.y')
-rw-r--r--lib/command_parse.y8
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: