[master] dc04d59 silence flexelint

Nils Goroll nils.goroll at uplex.de
Tue Sep 13 00:02:12 CEST 2016


commit dc04d592ae06ba136703e889260466ecc985a864
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Sep 12 23:12:49 2016 +0200

    silence flexelint

diff --git a/lib/libvmod_directors/shard_cfg.c b/lib/libvmod_directors/shard_cfg.c
index 44e5c28..3f91aab 100644
--- a/lib/libvmod_directors/shard_cfg.c
+++ b/lib/libvmod_directors/shard_cfg.c
@@ -41,6 +41,7 @@
 #include "shard_cfg.h"
 #include "shard_hash.h"
 
+/*lint -esym(749,  shard_change_task_e::*) */
 enum shard_change_task_e {
 	_INVALID = 0,
 	CLEAR,
diff --git a/lib/libvmod_directors/shard_dir.c b/lib/libvmod_directors/shard_dir.c
index 91f70d3..52f9d84 100644
--- a/lib/libvmod_directors/shard_dir.c
+++ b/lib/libvmod_directors/shard_dir.c
@@ -28,6 +28,8 @@
  * SUCH DAMAGE.
  */
 
+/*lint -e801 */
+
 #include "config.h"
 
 #include <stdlib.h>
diff --git a/lib/libvmod_directors/shard_parse_vcc_enums.c b/lib/libvmod_directors/shard_parse_vcc_enums.c
index e7b2095..7061ced 100644
--- a/lib/libvmod_directors/shard_parse_vcc_enums.c
+++ b/lib/libvmod_directors/shard_parse_vcc_enums.c
@@ -6,6 +6,8 @@
  * TODO: integrate in vmodtool.py or replace with something else
  */
 
+/*lint -e801 */
+
 #include "shard_parse_vcc_enums.h"
 #define term(c) ((c) == '\0')
 
diff --git a/lib/libvmod_directors/shard_parse_vcc_enums.h b/lib/libvmod_directors/shard_parse_vcc_enums.h
index d6e2ff9..afa0c47 100644
--- a/lib/libvmod_directors/shard_parse_vcc_enums.h
+++ b/lib/libvmod_directors/shard_parse_vcc_enums.h
@@ -17,6 +17,8 @@ enum alg_e {
 
 enum alg_e parse_alg_e (const char *);
 
+/*lint -esym(769,  by_e::_BY_E_MAX) */
+
 enum by_e {
 	_BY_E_INVALID = 0,
 	BY_HASH,
@@ -26,9 +28,10 @@ enum by_e {
 	_BY_E_MAX
 };
 
-
 enum by_e parse_by_e (const char *);
 
+/*lint -esym(769,  healthy_e::_HEALTHY_E_MAX) */
+
 enum healthy_e {
 	_HEALTHY_E_INVALID = 0,
 	CHOSEN,



More information about the varnish-commit mailing list