[master] 8af995f Supress Flexelints 835 from all macro expansions
Poul-Henning Kamp
phk at FreeBSD.org
Wed Jun 6 19:14:15 UTC 2018
commit 8af995ff6d8dc36d9631cfb82a21322fe261b7c2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Jun 6 19:13:22 2018 +0000
Supress Flexelints 835 from all macro expansions
diff --git a/bin/varnishtest/teken.c b/bin/varnishtest/teken.c
index bf5f782..ad06c57 100644
--- a/bin/varnishtest/teken.c
+++ b/bin/varnishtest/teken.c
@@ -457,8 +457,6 @@ teken_state_numbers(teken_t *t, teken_char_t c)
return (0);
}
-//lint -save -emacro((835),k,K) '|' has zero RHS
-
#define k TC_BLACK
#define b TC_BLUE
#define y TC_BROWN
@@ -644,8 +642,6 @@ static const teken_color_t teken_256to16tab[] = {
#undef R
#undef W
-//lint -restore
-
teken_color_t
teken_256to8(teken_color_t c)
{
diff --git a/flint.lnt b/flint.lnt
index a6c0737..0a9d6e9 100644
--- a/flint.lnt
+++ b/flint.lnt
@@ -5,6 +5,8 @@
//d__flexelint_v9__=1
+fan
+-emacro((835),*) // A zero has been given as ___ argument to operator '___
+
///////////////////////////////////////////////////////////////////////
// build/config related
More information about the varnish-commit
mailing list