| 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 |