Fix some -Wconversion warnings

This commit is contained in:
Nigel Tao committed 2019-04-07 14:55:32 +10:00
1 parent ed52fdecb9
commit 665355bd8a
4 files changed
+42 -38

No files matched your search

+8 -4
View File
@@ -50,15 +50,19 @@ go test github.com/google/wuffs/...
wuffs gen
echo "Checking snapshot compiles cleanly (as C)"
$CC -c -Wall -Werror -Wpedantic -std=c99 \
$CC -c \
-Wall -Werror -Wpedantic -Wconversion -std=c99 \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
$CC -c -Wall -Werror -Wpedantic -DWUFFS_IMPLEMENTATION -std=c99 \
$CC -c -DWUFFS_IMPLEMENTATION \
-Wall -Werror -Wpedantic -std=c99 \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
echo "Checking snapshot compiles cleanly (as C++)"
$CXX -c -Wall -Werror -Wpedantic -std=c++11 \
$CXX -c \
-Wall -Werror -Wpedantic -Wconversion -std=c++11 \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
$CXX -c -Wall -Werror -Wpedantic -DWUFFS_IMPLEMENTATION -std=c++11 \
$CXX -c -DWUFFS_IMPLEMENTATION \
-Wall -Werror -Wpedantic -std=c++11 \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
wuffs genlib -skipgen