From 40d4a47c0ef47bf4ff659e9c0e57b0a504a5034a Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 16 Oct 2024 12:41:06 +0200 Subject: [PATCH] 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 --- lib/defun_lex.l | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/defun_lex.l b/lib/defun_lex.l index 3104e48063..9528e44852 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)