Build examples with -Wall -Werror

This commit is contained in:
Nigel Tao committed 2018-06-30 09:10:10 +10:00
1 parent 33e99792eb
commit b09748c485
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -46,9 +46,9 @@ wuffs bench -skipgen -mimic -reps=1 -iterscale=1
for f in example/*; do
echo Building $f
if [ "$f" = "example/library" ]; then
gcc -static -I.. $f/*.c gen/lib/c/gcc-static/libwuffs.a -o $f/a.out
gcc -Wall -Werror -static -I.. $f/*.c gen/lib/c/gcc-static/libwuffs.a -o $f/a.out
elif [ -e $f/*.c ]; then
gcc $f/*.c -o $f/a.out
gcc -Wall -Werror $f/*.c -o $f/a.out
fi
done