check-all.sh

changeset 1703
bbbcf550f1ed
parent 1700
d2a36d28c565
equal deleted inserted replaced
1702:3f05e8f97b22 1703:bbbcf550f1ed
40 perform_check_cxx 40 perform_check_cxx
41 done 41 done
42 42
43 for cxx in clang++ g++; do 43 for cxx in clang++ g++; do
44 printf "Check header errors/warnings with $cxx..." 44 printf "Check header errors/warnings with $cxx..."
45 # no -pedantic to allow anonymous structs
45 if $cxx -o /dev/null -I src \ 46 if $cxx -o /dev/null -I src \
46 -Werror -Wall -Wextra -pedantic tests/cpptest.cpp ; then 47 -Werror -Wall -Wextra \
48 tests/cpptest.cpp ; then
47 echo "ok." 49 echo "ok."
48 else 50 else
49 echo "fail." 51 echo "fail."
50 fi 52 fi
51 done 53 done

mercurial