Don't use designated initializers

Some C/C++ compilers, such as MSVC, don't always support them. They're
also not supported by GCC's "g++ -std=c++11 -Wpedantic".
This commit is contained in:
Nigel Tao committed 2019-03-09 10:08:00 +11:00
1 parent ef7aa0d980
commit c4b8a6a4cc
19 files changed
+639 -516

No files matched your search

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