From c98c14fef591cac8700e32cc5f93133871e4ddd8 Mon Sep 17 00:00:00 2001 From: Hallvard B Furuseth Date: Wed, 29 Jun 2011 21:58:17 +0200 Subject: [PATCH] Private: make.sh --- libraries/libmdb/make.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 libraries/libmdb/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` -- 2.39.5