From 0efaf3c8cb1b21b3efe67ca93483b9f428ee8be2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 5 Apr 2019 00:47:58 -0400 Subject: [PATCH] Silence -Wmissing-field-initializer warnings --- include/stratosphere/hossynch.hpp | 2 +- include/stratosphere/ipc/ipc_serialization.hpp | 4 ++-- include/stratosphere/ipc/ipc_service_session.hpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/stratosphere/hossynch.hpp b/include/stratosphere/hossynch.hpp index dd7d6b16..c6998f97 100644 --- a/include/stratosphere/hossynch.hpp +++ b/include/stratosphere/hossynch.hpp @@ -256,7 +256,7 @@ class HosSignal { class HosThread { private: - Thread thr = {0}; + Thread thr = {}; public: HosThread() {} diff --git a/include/stratosphere/ipc/ipc_serialization.hpp b/include/stratosphere/ipc/ipc_serialization.hpp index a62a12a0..18ccbb88 100644 --- a/include/stratosphere/ipc/ipc_serialization.hpp +++ b/include/stratosphere/ipc/ipc_serialization.hpp @@ -511,7 +511,7 @@ struct Encoder> { if (IsDomainObject(ctx->obj_holder)) { raw = (decltype(raw))ipcPrepareHeaderForDomain(&ctx->reply, sizeof(*raw), 0); auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader)); - *resp_header = {0}; + *resp_header = {}; } else { raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw)); } @@ -541,7 +541,7 @@ struct Encoder> { if (is_domain) { raw = (decltype(raw))ipcPrepareHeaderForDomain(&ctx->reply, sizeof(*raw) + MetaInfo::OutRawArgSize + sizeof(*ctx->out_object_ids) * MetaInfo::NumOutSessions, 0); auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader)); - *resp_header = {0}; + *resp_header = {}; resp_header->NumObjectIds = MetaInfo::NumOutSessions; } else { raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw)+ MetaInfo::OutRawArgSize); diff --git a/include/stratosphere/ipc/ipc_service_session.hpp b/include/stratosphere/ipc/ipc_service_session.hpp index 43e1dd72..da752d75 100644 --- a/include/stratosphere/ipc/ipc_service_session.hpp +++ b/include/stratosphere/ipc/ipc_service_session.hpp @@ -109,7 +109,7 @@ class ServiceSession : public IWaitable u64 result; } *raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw)); - raw->hdr = (DomainResponseHeader){0}; + raw->hdr = {}; raw->magic = SFCO_MAGIC; raw->result = rc; return raw->result;