Merge pull request #4148 from Morph1984/silence-warnings

Silence miscellaneous warnings
This commit is contained in:
Rodrigo Locatti 2020-06-23 00:39:04 -03:00 committed by GitHub
commit 2ce3aedda8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -86,7 +86,8 @@ std::string FormatField(Field type, const std::vector<u8>& data) {
return Common::StringFromFixedZeroTerminatedBuffer( return Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(data.data()), data.size()); reinterpret_cast<const char*>(data.data()), data.size());
default: default:
UNIMPLEMENTED(); UNIMPLEMENTED_MSG("Unimplemented field type={}", type);
return "";
} }
} }

View File

@ -53,7 +53,7 @@ private:
IPC::ResponseBuilder rb{ctx, 3}; IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS); rb.Push(RESULT_SUCCESS);
rb.Push<u32>(write_size); rb.Push<u32>(static_cast<u32>(write_size));
} }
void StartIndividual(Kernel::HLERequestContext& ctx) { void StartIndividual(Kernel::HLERequestContext& ctx) {