os: Add missing {} around sub-object initializers.

Clang complains when a sub-object is initialized without {}.

Issue #3950
This commit is contained in:
Piotr Tworek 2020-11-13 00:20:51 +01:00 committed by Christian Helmuth
parent 50ab86cd72
commit 48220dfd9b
2 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ void Pointer::Main::_update_pointer()
_rom_registry.lookup(*this, _hovered_label);
try {
Shape_report shape_report { 0, 0, 0, 0, 0, 0 };
Shape_report shape_report { 0, 0, 0, 0, 0, { 0 } };
shape_module.read_content(*this, (char*)&shape_report, sizeof(shape_report));

View File

@ -379,8 +379,8 @@ class Event_filter::Chargen_source : public Source, Source::Filter
struct Sequence
{
Codepoint seq[4] { Codepoint::INVALID, Codepoint::INVALID,
Codepoint::INVALID, Codepoint::INVALID };
Codepoint seq[4] { { Codepoint::INVALID }, { Codepoint::INVALID },
{ Codepoint::INVALID }, { Codepoint::INVALID } };
unsigned len { 0 };