Removed uninitialized warning

This commit is contained in:
Jarrod Norwell 2024-08-18 10:57:59 +02:00 committed by Gamer64
parent dc332ebe6c
commit 0f8970edc8
2 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ Result Process::LinearFree(VAddr target, u32 size) {
ResultVal<VAddr> Process::AllocateThreadLocalStorage() {
std::size_t tls_page;
std::size_t tls_slot;
std::size_t tls_slot = 0;
bool needs_allocation = true;
// Iterate over all the allocated pages, and try to find one where not all slots are used.

View File

@ -58,7 +58,7 @@ void Module::Interface::AddNotificationImpl(Kernel::HLERequestContext& ctx, bool
const u32 message_size = rp.Pop<u32>();
const u32 image_size = rp.Pop<u32>();
u32 process_id;
u32 process_id = 0;
if (!news_s) {
process_id = rp.PopPID();
LOG_INFO(Service_NEWS,