Compile C++ example with -Wall -Werror

This commit is contained in:
Nigel Tao committed 2018-06-30 10:56:04 +10:00
1 parent 6183aba9d7
commit 60a7b48745
11 files changed
+50 -50

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ for f in example/*; do
echo Building $f
if [ "$f" = "example/crc32" ]; then
# example/crc32 is unusual in that it's C++, not C.
g++ $f/*.cc -o $f/a.out
g++ -Wall -Werror $f/*.cc -o $f/a.out
elif [ "$f" = "example/library" ]; then
# example/library is unusual in that it uses separately compiled libraries
# instead of directly #include'ing Wuffs' .c files.