mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
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:
1 parent
ef7aa0d980
commit
c4b8a6a4cc
19 files changed
+639
-516
No files matched your search
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user