From: Hallvard B Furuseth Date: Wed, 29 Jun 2011 19:58:17 +0000 (+0200) Subject: Private: make.sh X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~161 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c98c14fef591cac8700e32cc5f93133871e4ddd8;p=openldap Private: make.sh --- diff --git a/libraries/libmdb/make.sh b/libraries/libmdb/make.sh new file mode 100755 index 0000000000..9b5aff2136 --- /dev/null +++ b/libraries/libmdb/make.sh @@ -0,0 +1,9 @@ +#!/bin/sh +warning_filter() { + egrep -v ': In function .*:$|: warning: (ISO C99 requires rest arguments to be used|format .*%p.* has type .*struct MDB_.*\*)' +} + +exit `{ + { XCFLAGS="-std=c99 -pedantic" make "$@" 2>&1; echo $? >&3; } | + warning_filter >&2 +} 3>&1`