summaryrefslogtreecommitdiffstats
path: root/lib/defun_lex.l
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-10-16 12:41:06 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2024-10-16 13:30:25 +0200
commit40d4a47c0ef47bf4ff659e9c0e57b0a504a5034a (patch)
tree58e7d43b05f92cc97a051efd6f09b87c23745d26 /lib/defun_lex.l
parent*: clang-SA switch-enum initializer workarounds (diff)
downloadfrr-40d4a47c0ef47bf4ff659e9c0e57b0a504a5034a.tar.xz
frr-40d4a47c0ef47bf4ff659e9c0e57b0a504a5034a.zip
lib: make clang-SA not choke on defun_lex.l
The flex-generated code is disabled for clang-SA builds already, but that means that function prototypes are missing too. Just add dummy function prototypes so clang-SA can process the file. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/defun_lex.l')
-rw-r--r--lib/defun_lex.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/defun_lex.l b/lib/defun_lex.l
index 3104e4806..9528e4485 100644
--- a/lib/defun_lex.l
+++ b/lib/defun_lex.l
@@ -157,6 +157,9 @@ SPECIAL [(),]
%%
+#else
+extern int def_yylex(void);
+extern int def_yylex_destroy(void);
#endif /* __clang_analyzer__ */
static int yylex_clr(char **retbuf)