Merge pull request #8 from lioncash/init

Silence -Wmissing-field-initializer warnings
This commit is contained in:
SciresM 2019-04-04 23:14:13 -07:00 committed by GitHub
commit a7c19d240b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -256,7 +256,7 @@ class HosSignal {
class HosThread {
private:
Thread thr = {0};
Thread thr = {};
public:
HosThread() {}

View File

@ -511,7 +511,7 @@ struct Encoder<MetaInfo, std::tuple<Args...>> {
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<MetaInfo, std::tuple<Args...>> {
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);

View File

@ -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;