Fix compile warnings

This commit is contained in:
Martin
2017-01-19 15:53:53 +01:00
parent 4c36ab0230
commit 3b7ee5aea5
4 changed files with 65 additions and 29 deletions

View File

@@ -25,8 +25,12 @@ done
echo "int main() { return 0; }" > main.c
gcc main.c $OUTPUT_PREFIX.c -o test.out
gcc -ansi main.c $OUTPUT_PREFIX.c -o test.out
gcc -Wpedantic -Wall main.c $OUTPUT_PREFIX.c -o test.out
gcc -ansi -Wpedantic -Wall main.c $OUTPUT_PREFIX.c -o test.out
if command -v clang
then
clang -Wall -Wpedantic -fsanitize=unsigned-integer-overflow main.c $OUTPUT_PREFIX.c -o test.out
fi
rm test.out
rm main.c