]> diplodocus.org Git - nmh/commitdiff
Refined the POSTLINK used on OpenBSD so that it leaves the warnings,
authorDavid Levine <levinedl@acm.org>
Sat, 11 Jan 2014 22:30:42 +0000 (16:30 -0600)
committerDavid Levine <levinedl@acm.org>
Sat, 11 Jan 2014 22:30:42 +0000 (16:30 -0600)
but capitalizes the "w" so that they don't color the buildbot waterfall.

configure.ac

index f817d12..8b3066c 100644 (file)
@@ -164,11 +164,11 @@ fi
 dnl --------------
 dnl CUSTOMIZE LINK
 dnl --------------
 dnl --------------
 dnl CUSTOMIZE LINK
 dnl --------------
-if test `uname` = OpenBSD; then
-  dnl Filter out "often/almost always misused" warnings from OpenBSD linker.
-  [POSTLINK="2>&1 | egrep -v ': [w]arning: s[a-z]+\(\) is \
-(almost always|often) misused, please use' || true"]
-fi
+AS_IF([test `uname` = OpenBSD],
+      dnl Munge "often/almost always misused" warnings from OpenBSD linker
+      dnl so that they don't color the waterfall.
+      [POSTLINK="2>&1 | sed -e \
+'s/: w\(arning: s.*() is .* misused, please use\)/: W\1/'"])
 AC_SUBST([POSTLINK])
 
 dnl -----------------
 AC_SUBST([POSTLINK])
 
 dnl -----------------