]> git.sur5r.net Git - openldap/commitdiff
Private: make.sh
authorHallvard B Furuseth <h.b.furuseth@usit.uio.no>
Wed, 29 Jun 2011 19:58:17 +0000 (21:58 +0200)
committerHallvard B Furuseth <h.b.furuseth@usit.uio.no>
Wed, 29 Jun 2011 20:29:24 +0000 (22:29 +0200)
libraries/libmdb/make.sh [new file with mode: 0755]

diff --git a/libraries/libmdb/make.sh b/libraries/libmdb/make.sh
new file mode 100755 (executable)
index 0000000..9b5aff2
--- /dev/null
@@ -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`