[master] 68921c0 Flexelinting
Poul-Henning Kamp
phk at FreeBSD.org
Sat Feb 24 22:20:13 UTC 2018
commit 68921c021a019aeee89afd6fe953f2a10beaad07
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sat Feb 24 22:19:30 2018 +0000
Flexelinting
diff --git a/bin/varnishd/flint.lnt b/bin/varnishd/flint.lnt
index 923b702..0925a2b 100644
--- a/bin/varnishd/flint.lnt
+++ b/bin/varnishd/flint.lnt
@@ -1,5 +1,3 @@
--d__flexelint_v9__=1
-+fan
// -w4
-printf(3, VSL)
diff --git a/flint.lnt b/flint.lnt
index 94c1239..8b055f8 100644
--- a/flint.lnt
+++ b/flint.lnt
@@ -2,6 +2,9 @@
* Toplevel control file for FlexeLint
*/
+//d__flexelint_v9__=1
++fan
+
///////////////////////////////////////////////////////////////////////
// build/config related
diff --git a/lib/libvarnish/flint.lnt b/lib/libvarnish/flint.lnt
index 64d4dd2..7752265 100644
--- a/lib/libvarnish/flint.lnt
+++ b/lib/libvarnish/flint.lnt
@@ -5,9 +5,6 @@
-efunc(662, VSHA256_Update) // Possible creation of out-of-bounds pointer
-efunc(662, be32dec_vect) // Possible creation of out-of-bounds pointer
-efunc(670, VSHA256_Update) // Possible access beyond array for function '___',
-+fan // Allow anon unions
-
--e713 // Loss of precision (assignment) (unsigned long long to long long)
-dVARNISH_STATE_DIR="foo"
diff --git a/lib/libvmod_blob/hex.h b/lib/libvmod_blob/hex.h
index 9c0e344..53cfc89 100644
--- a/lib/libvmod_blob/hex.h
+++ b/lib/libvmod_blob/hex.h
@@ -28,7 +28,7 @@
#include <stdint.h>
-#define ILL (0xff)
+#define ILL ((int8_t) 127)
/* These are defined in hex.c */
diff --git a/lib/libvmod_blob/wb.c b/lib/libvmod_blob/wb.c
index 304b12e..1b54b3e 100644
--- a/lib/libvmod_blob/wb.c
+++ b/lib/libvmod_blob/wb.c
@@ -26,6 +26,8 @@
* write buffer: utility functions to append-write on a varnish workspace
*/
+#include "config.h"
+
#include <string.h>
#include "cache/cache.h"
More information about the varnish-commit
mailing list