[master] bee9d898c Teach FlexeLint a bit about ws-emu
Poul-Henning Kamp
phk at FreeBSD.org
Sat Aug 28 13:42:05 UTC 2021
commit bee9d898c17dc8fd5296da62b1c8e351134ef0bd
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sat Aug 28 13:41:32 2021 +0000
Teach FlexeLint a bit about ws-emu
diff --git a/bin/varnishd/cache/cache_ws_emu.c b/bin/varnishd/cache/cache_ws_emu.c
index bc9a4c67e..631045bdd 100644
--- a/bin/varnishd/cache/cache_ws_emu.c
+++ b/bin/varnishd/cache/cache_ws_emu.c
@@ -31,6 +31,8 @@
#include "config.h"
+#ifdef ENABLE_WORKSPACE_EMULATOR
+
#if HAVE_SANITIZER_ASAN_INTERFACE_H
# include <sanitizer/asan_interface.h>
#endif
@@ -722,3 +724,5 @@ WS_Panic(struct vsb *vsb, const struct ws *ws)
VSB_indent(vsb, -2);
VSB_cat(vsb, "},\n");
}
+
+#endif /* ENABLE_WORKSPACE_EMULATOR */
diff --git a/bin/varnishd/flint.lnt b/bin/varnishd/flint.lnt
index 0d8f5c5e7..910ace52c 100644
--- a/bin/varnishd/flint.lnt
+++ b/bin/varnishd/flint.lnt
@@ -63,6 +63,12 @@
-esym(714, Vmod_*_Data)
-esym(765, Vmod_*_Data)
+-esym(755, PAN_dump_once) // global macro not referenced
+-esym(755, PAN_dump_once_oneline) // global macro not referenced
+-esym(714, WS_Dump) // Info 714: sym not referenced
+-esym(759, WS_Dump) // Info 759: header declaration could be moved to module
+-esym(765, WS_Dump) // Info 765: external could be static
+
//-sem (pthread_mutex_lock, thread_lock)
-sem (pthread_mutex_trylock, thread_lock)
More information about the varnish-commit
mailing list