aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-04-05 11:55:01 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-04-05 11:55:01 +0100
commit951983351baa2f27da4f4fe432fb55bf911d17e5 (patch)
tree295adcbb5a32aeb0feb13781b77e24607d2dcfa9
parentdf7941827721bd4c4523a34129f2cae3272957d2 (diff)
greplogs: Update warning filters
Update the greplogs warning filters: * require 'error', 'warning' etc to be at the start of a word boundary, so we don't get false positives for tests named "foo_error" * suppress expected warnings from OpenBSD and NetBSD builds Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rwxr-xr-xgreplogs15
1 files changed, 13 insertions, 2 deletions
diff --git a/greplogs b/greplogs
index 23690f0..b198282 100755
--- a/greplogs
+++ b/greplogs
@@ -43,9 +43,20 @@ while read f; do
# (2) a complaint about null_auth being an overridden common between
# libnfs and libc when statically linking
# (3) OSX's ancient texinfo doesn't know about UTF-8
- egrep -i '(error:|warning:|OK DONE|assert)' < "$f" | \
+ # (4) OpenBSD's linker is very opinionated but we disagree (or just
+ # haven't got round to silencing things yet)
+ # (5) OpenBSD's eglplatform.h has a bug that triggers a -Wundef warning
+ # (6) NetBSD's libc implementation of 'environ' triggers multiple-common definitions
+ egrep -i '\<(error:|warning:|OK DONE|assert)' < "$f" | \
grep -v 'warning: unrecognized encoding name `UTF-8' | \
grep -v 'statically linked applications' | \
grep -v 'rpc_common.o.*definition of.*null_auth.*overriding common' | \
- grep -v 'libnfs.a(libnfs_la-libnfs-zdr.o): warning: common is here'
+ grep -v 'libnfs.a(libnfs_la-libnfs-zdr.o): warning: common is here' | \
+ grep -v 'is almost always misused' | \
+ grep -v 'is often misused' | \
+ grep -v 'is dangerous; do not use it' | \
+ grep -v 'may return deterministic values' | \
+ grep -v '/usr/X11R6/include/EGL/eglplatform.h.*__HAIKU__' | \
+ grep -v '/usr/lib/libc.so: warning: multiple common of `environ' | \
+ grep -v '/usr/lib/crt0.o: warning: previous common is here'
done