]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: make clang-SA not choke on defun_lex.l
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Oct 2024 10:41:06 +0000 (12:41 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Oct 2024 11:30:25 +0000 (13:30 +0200)
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>
lib/defun_lex.l

index 3104e48063b5926507f5730780aeb16b0174355a..9528e448521afc0df41d3e74cc7823d85cef529c 100644 (file)
@@ -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)