[6.0] af9110082 Supress Flexelints 835 from all macro expansions
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Aug 16 08:53:09 UTC 2018
commit af9110082d45453008f22438a8fec001f118a3ff
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 bf5f782ce..ad06c57c6 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 a6c0737e4..0a9d6e9f0 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