[master] a0a3c3ea2 Flexelint: consistently define WITH_PERSISTENT_STORAGE
Nils Goroll
nils.goroll at uplex.de
Thu Feb 13 16:01:07 UTC 2025
commit a0a3c3ea2d57f6ab993ecc198df439cb14991645
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Feb 13 16:58:47 2025 +0100
Flexelint: consistently define WITH_PERSISTENT_STORAGE
if the build was configured without it defined, flexelint would still be run on
storage_persistent.c. In order to not complicate the flexelint invocation, just
always define it.
diff --git a/bin/varnishd/flint.sh b/bin/varnishd/flint.sh
index b76ee681b..b26f0f27a 100644
--- a/bin/varnishd/flint.sh
+++ b/bin/varnishd/flint.sh
@@ -11,6 +11,7 @@ FLOPS='
-DVARNISH_STATE_DIR="foo"
-DVARNISH_VMOD_DIR="foo"
-DVARNISH_VCL_DIR="foo"
+ -DWITH_PERSISTENT_STORAGE
acceptor/*.c
cache/*.c
common/*.c
diff --git a/bin/varnishd/storage/storage_persistent.c b/bin/varnishd/storage/storage_persistent.c
index df2fc9128..f193ae976 100644
--- a/bin/varnishd/storage/storage_persistent.c
+++ b/bin/varnishd/storage/storage_persistent.c
@@ -61,6 +61,10 @@ static struct VSC_lck *lck_smp;
static void smp_init(void);
+#ifndef WITH_PERSISTENT_STORAGE
+#error "WITH_PERSISTENT_STORAGE must be defined"
+#endif
+
/*--------------------------------------------------------------------*/
/*
More information about the varnish-commit
mailing list