Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3e01360

Browse files
Mike KleinSkia Commit-Bot
authored andcommitted
GCC gets worried when we memset Stats
... because it has a constructor, implied by all the initializers. Luckily, that constructor does exactly what our memset() does. Change-Id: Ibe538e9d840de9e6fd07d673783709df17b7b4fb Reviewed-on: https://skia-review.googlesource.com/c/skia/+/258447 Commit-Queue: Florin Malita <fmalita@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org>
1 parent 0483b46 commit 3e01360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/skottie/src/Skottie.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ sk_sp<Animation> Animation::Builder::make(const char* data, size_t data_len) {
467467
auto resolvedProvider = fResourceProvider
468468
? fResourceProvider : sk_make_sp<NullResourceProvider>();
469469

470-
memset(&fStats, 0, sizeof(struct Stats));
470+
fStats = Stats{};
471471

472472
fStats.fJsonSize = data_len;
473473
const auto t0 = std::chrono::steady_clock::now();

0 commit comments

Comments
 (0)