mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
10 lines
270 B
Bash
10 lines
270 B
Bash
|
#!/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`
|