Skip to content

Commit

Permalink
Fix Clang's -Wmissing-field-initializers warnings
Browse files Browse the repository at this point in the history
Fix -Wmissing-field-initializers warnings in avif_fuzztest_dec_incr.cc.
  • Loading branch information
wantehchang committed Aug 1, 2024
1 parent f0aba53 commit 19685b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/gtest/avif_fuzztest_dec_incr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ void DecodeIncr(const std::string& arbitrary_bytes, bool is_persistent,

DecoderInput data = {reinterpret_cast<const uint8_t*>(arbitrary_bytes.data()),
arbitrary_bytes.size(), 0};
avifIO io = {.read = AvifIoRead,
avifIO io = {.destroy = nullptr,
.read = AvifIoRead,
.write = nullptr,
.sizeHint = arbitrary_bytes.size(),
.persistent = AVIF_TRUE,
.data = &data};
Expand Down

0 comments on commit 19685b6

Please sign in to comment.