mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 19:12:42 +02:00
Merge pull request #8 from lioncash/init
Silence -Wmissing-field-initializer warnings
This commit is contained in:
commit
a7c19d240b
@ -256,7 +256,7 @@ class HosSignal {
|
|||||||
|
|
||||||
class HosThread {
|
class HosThread {
|
||||||
private:
|
private:
|
||||||
Thread thr = {0};
|
Thread thr = {};
|
||||||
public:
|
public:
|
||||||
HosThread() {}
|
HosThread() {}
|
||||||
|
|
||||||
|
@ -511,7 +511,7 @@ struct Encoder<MetaInfo, std::tuple<Args...>> {
|
|||||||
if (IsDomainObject(ctx->obj_holder)) {
|
if (IsDomainObject(ctx->obj_holder)) {
|
||||||
raw = (decltype(raw))ipcPrepareHeaderForDomain(&ctx->reply, sizeof(*raw), 0);
|
raw = (decltype(raw))ipcPrepareHeaderForDomain(&ctx->reply, sizeof(*raw), 0);
|
||||||
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
|
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
|
||||||
*resp_header = {0};
|
*resp_header = {};
|
||||||
} else {
|
} else {
|
||||||
raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw));
|
raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw));
|
||||||
}
|
}
|
||||||
@ -541,7 +541,7 @@ struct Encoder<MetaInfo, std::tuple<Args...>> {
|
|||||||
if (is_domain) {
|
if (is_domain) {
|
||||||
raw = (decltype(raw))ipcPrepareHeaderForDomain(&ctx->reply, sizeof(*raw) + MetaInfo::OutRawArgSize + sizeof(*ctx->out_object_ids) * MetaInfo::NumOutSessions, 0);
|
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));
|
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
|
||||||
*resp_header = {0};
|
*resp_header = {};
|
||||||
resp_header->NumObjectIds = MetaInfo::NumOutSessions;
|
resp_header->NumObjectIds = MetaInfo::NumOutSessions;
|
||||||
} else {
|
} else {
|
||||||
raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw)+ MetaInfo::OutRawArgSize);
|
raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw)+ MetaInfo::OutRawArgSize);
|
||||||
|
@ -109,7 +109,7 @@ class ServiceSession : public IWaitable
|
|||||||
u64 result;
|
u64 result;
|
||||||
} *raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw));
|
} *raw = (decltype(raw))ipcPrepareHeader(&ctx->reply, sizeof(*raw));
|
||||||
|
|
||||||
raw->hdr = (DomainResponseHeader){0};
|
raw->hdr = {};
|
||||||
raw->magic = SFCO_MAGIC;
|
raw->magic = SFCO_MAGIC;
|
||||||
raw->result = rc;
|
raw->result = rc;
|
||||||
return raw->result;
|
return raw->result;
|
||||||
|
Loading…
Reference in New Issue
Block a user