[master] 5dfa83b Don't include test-programs in FlexeLint runs

Poul-Henning Kamp phk at FreeBSD.org
Tue Apr 25 00:14:05 CEST 2017


commit 5dfa83b0e3480e0c7524b99673bc8bdc80b1177e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Apr 24 22:13:32 2017 +0000

    Don't include test-programs in FlexeLint runs

diff --git a/lib/libvarnishapi/vsl2rst.c b/lib/libvarnishapi/vsl2rst.c
index e4767d5..ea9866e 100644
--- a/lib/libvarnishapi/vsl2rst.c
+++ b/lib/libvarnishapi/vsl2rst.c
@@ -27,6 +27,8 @@
  *
  */
 
+#ifndef __FLEXELINT__
+
 #include "config.h"
 
 #include <stdint.h>
@@ -111,3 +113,5 @@ main(int argc, char *argv[])
 
 	return (0);
 }
+
+#endif // __FLEXELINT__
diff --git a/lib/libvarnishapi/vsl_glob_test.c b/lib/libvarnishapi/vsl_glob_test.c
index bc5eee1..3ad2ec8 100644
--- a/lib/libvarnishapi/vsl_glob_test.c
+++ b/lib/libvarnishapi/vsl_glob_test.c
@@ -28,6 +28,8 @@
  * Test what VSL_Name2Tag and VSL_Glob2Tags produces
  */
 
+#ifndef __FLEXELINT__
+
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -69,3 +71,5 @@ main(int argc, char * const *argv)
 
 	return (0);
 }
+
+#endif // __FLEXELINT__
diff --git a/lib/libvarnishapi/vxp_test.c b/lib/libvarnishapi/vxp_test.c
index cbb598a..bcca61b 100644
--- a/lib/libvarnishapi/vxp_test.c
+++ b/lib/libvarnishapi/vxp_test.c
@@ -26,6 +26,8 @@
  * SUCH DAMAGE.
  */
 
+#ifndef __FLEXELINT__
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -84,3 +86,5 @@ main(int argc, char * const *argv)
 
 	return (0);
 }
+
+#endif // __FLEXELINT__



More information about the varnish-commit mailing list