Commit 7123e16d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Found the root cause, clear flint bug.

parent 80071c56
......@@ -9,6 +9,8 @@
//d__flexelint_v9__=1
+fan
-hm4
///////////////////////////////////////////////////////////////////////
// electives
//+e9*
......@@ -60,7 +62,12 @@
///////////////////////////////////////////////////////////////////////
-emacro((835),*) // A zero has been given as ___ argument to operator '___
// This does not work with pcre2.h, the injected /* lint ... */ comments
// interfere with macro argument concatenation. Clear flexelint bug
// because it does not happen when run with -p
// -emacro((835),*) // A zero has been given as ___ argument to operator '___
-e835 // A zero has been given as ___ argument to operator '___
///////////////////////////////////////////////////////////////////////
// build/config related
......
......@@ -18,15 +18,6 @@ fi
IARG="${IARG} -I/usr/local/include"
# Flexelint do not grok the macro-stacking in pcre2.h
# Solve it by running it through CPP first.
echo '
#include "config.h"
#include <pcre2.h>
' | cc $IARG -E - |
sed '/^# [0-9]/d' > pcre2.h
flexelint \
-D__FLEXELINT__ \
$(if [ $l -eq 2 ] ; then echo ../../flint.lnt ; fi) \
......@@ -38,8 +29,6 @@ flexelint \
$FLOPS \
2>&1 | tee _.fl
rm -f pcre2.h
if [ -f _.fl.old ] ; then
diff -u _.fl.old _.fl
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment