mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
tests/pedantic-header-test.sh.in : New file to test whether sndfile.h can be compiled with gcc's -pedantic flag.
This commit is contained in:
parent
8cabcb3522
commit
d1484cf543
@ -1,3 +1,9 @@
|
||||
2010-04-21 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* tests/pedantic-header-test.sh.in
|
||||
New file to test whether sndfile.h can be compiled with gcc's -pedantic
|
||||
flag.
|
||||
|
||||
2010-04-19 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* programs/sndfile-salvage.c programs/Makefile.am
|
||||
|
22
tests/pedantic-header-test.sh.in
Normal file
22
tests/pedantic-header-test.sh.in
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo -n " Pedantic header test : "
|
||||
|
||||
# Only do this if the compiler is GCC.
|
||||
if test -n "@GCC_MAJOR_VERSION@" ; then
|
||||
|
||||
# Compile with -Werror and -pedantic.
|
||||
@ac_ct_CC@ -Werror -pedantic -I@top_srcdir@/src -c sfversion.c -o /dev/null
|
||||
|
||||
# Check compiler return status.
|
||||
if test $? -ne 0 ; then
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "ok"
|
||||
else
|
||||
echo "n/a"
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user