Merge pull request #3262 from lioncash/warn

common/core: Silence initialization order warnings
This commit is contained in:
Merry 2017-12-11 19:52:53 +00:00 committed by GitHub
commit 5c802d35ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -190,7 +190,7 @@ MappedBuffer& HLERequestContext::GetMappedBuffer(u32 id_from_cmdbuf) {
}
MappedBuffer::MappedBuffer(const Process& process, u32 descriptor, VAddr address, u32 id)
: process(&process), address(address), id(id) {
: id(id), address(address), process(&process) {
IPC::MappedBufferDescInfo desc{descriptor};
size = desc.size;
perms = desc.perms;

View file

@ -67,7 +67,7 @@ enum class DirectoryCommand : u32 {
};
File::File(std::unique_ptr<FileSys::FileBackend>&& backend, const FileSys::Path& path)
: path(path), priority(0), backend(std::move(backend)), ServiceFramework("", 1) {
: ServiceFramework("", 1), path(path), priority(0), backend(std::move(backend)) {
static const FunctionInfo functions[] = {
{0x080200C2, &File::Read, "Read"},
{0x08030102, &File::Write, "Write"},