Commit ff383bfd authored by Vadym Doroshenko's avatar Vadym Doroshenko Committed by Commit Bot

Fix c99-designator warning in one file.

The only left warnings were recently introduced by CL
https://chromium-review.googlesource.com/c/chromium/src/+/1811197
in files compositor_frame_reporter.cc and frame_sequence_tracker.cc.

Bug: 999871
Change-Id: I77d50266a87ee8b3dbe9d9ed313b5019a364a8c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899986
Auto-Submit: Vadym Doroshenko <dvadym@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Vadym Doroshenko <dvadym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712697}
parent d36680fb
......@@ -1526,7 +1526,7 @@ config("default_warnings") {
# TODO(https://crbug.com/999871): Decide if we want to clean up the
# codebase or just disable this. Doesn't seem super useful, but
# also fires in only 4 files.
# also fires in only 2 files.
"-Wno-c99-designator",
# TODO(https://crbug.com/999886): Clean up, enable.
......
......@@ -95,10 +95,11 @@ void ApplyTextStyleForType(SuggestionAnswer::TextStyle text_style,
style = {gfx::kGoogleRed600};
break;
case SuggestionAnswer::TextStyle::SUPERIOR:
style = {part_color, .baseline = gfx::SUPERIOR};
style = {.color = part_color, .baseline = gfx::SUPERIOR};
break;
case SuggestionAnswer::TextStyle::BOLD:
style = {part_color, .baseline = gfx::NORMAL_BASELINE,
style = {.color = part_color,
.baseline = gfx::NORMAL_BASELINE,
.weight = gfx::Font::Weight::BOLD};
break;
case SuggestionAnswer::TextStyle::NORMAL:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment