Compatibility with older gcc

This commit is contained in:
Martin
2017-01-19 16:00:13 +01:00
parent e906a841c7
commit 460e619ae8

View File

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