From 02e767866a0a0c05965a8f01a8a3ebcb95ce1274 Mon Sep 17 00:00:00 2001 From: oltolm Date: Sat, 30 Sep 2023 00:49:06 +0200 Subject: [PATCH] fix compiler warnings --- Common/GPU/D3D11/thin3d_d3d11.cpp | 38 ++++++++++++++++++++------ Common/GPU/D3D9/thin3d_d3d9.cpp | 36 ++++++++++++++++++++++-- Common/GPU/Vulkan/thin3d_vulkan.cpp | 6 ++-- Common/Log/ConsoleListener.cpp | 4 +-- Common/TimeUtil.cpp | 2 +- Core/Debugger/SymbolMap.cpp | 3 ++ Core/MIPS/IR/IRFrontend.cpp | 2 +- Core/MIPS/MIPSVFPUUtils.cpp | 16 +++++------ GPU/Directx9/ShaderManagerDX9.cpp | 6 ++++ UI/BackgroundAudio.cpp | 2 +- UI/ImDebugger/ImDebugger.cpp | 2 ++ Windows/CaptureDevice.cpp | 2 ++ Windows/Debugger/DumpMemoryWindow.cpp | 2 ++ Windows/GEDebugger/TabDisplayLists.cpp | 4 +-- Windows/GEDebugger/TabDisplayLists.h | 2 +- Windows/GEDebugger/TabState.cpp | 2 +- Windows/GEDebugger/TabVertices.cpp | 2 +- Windows/WASAPIStream.cpp | 6 ++-- Windows/main.cpp | 11 ++++++++ 19 files changed, 115 insertions(+), 33 deletions(-) diff --git a/Common/GPU/D3D11/thin3d_d3d11.cpp b/Common/GPU/D3D11/thin3d_d3d11.cpp index 1fdfe6d33c..12aa002e7b 100644 --- a/Common/GPU/D3D11/thin3d_d3d11.cpp +++ b/Common/GPU/D3D11/thin3d_d3d11.cpp @@ -172,15 +172,17 @@ public: case InfoField::DRIVER: return "-"; case InfoField::SHADELANGVERSION: switch (featureLevel_) { - case D3D_FEATURE_LEVEL_9_1: return "Feature Level 9.1"; break; - case D3D_FEATURE_LEVEL_9_2: return "Feature Level 9.2"; break; - case D3D_FEATURE_LEVEL_9_3: return "Feature Level 9.3"; break; - case D3D_FEATURE_LEVEL_10_0: return "Feature Level 10.0"; break; - case D3D_FEATURE_LEVEL_10_1: return "Feature Level 10.1"; break; - case D3D_FEATURE_LEVEL_11_0: return "Feature Level 11.0"; break; - case D3D_FEATURE_LEVEL_11_1: return "Feature Level 11.1"; break; - case D3D_FEATURE_LEVEL_12_0: return "Feature Level 12.0"; break; - case D3D_FEATURE_LEVEL_12_1: return "Feature Level 12.1"; break; + case D3D_FEATURE_LEVEL_1_0_CORE: return "Feature Level 1.0 Core"; + case D3D_FEATURE_LEVEL_9_1: return "Feature Level 9.1"; + case D3D_FEATURE_LEVEL_9_2: return "Feature Level 9.2"; + case D3D_FEATURE_LEVEL_9_3: return "Feature Level 9.3"; + case D3D_FEATURE_LEVEL_10_0: return "Feature Level 10.0"; + case D3D_FEATURE_LEVEL_10_1: return "Feature Level 10.1"; + case D3D_FEATURE_LEVEL_11_0: return "Feature Level 11.0"; + case D3D_FEATURE_LEVEL_11_1: return "Feature Level 11.1"; + case D3D_FEATURE_LEVEL_12_0: return "Feature Level 12.0"; + case D3D_FEATURE_LEVEL_12_1: return "Feature Level 12.1"; + case D3D_FEATURE_LEVEL_12_2: return "Feature Level 12.2"; } return "Unknown feature level"; case InfoField::APINAME: return "Direct3D 11"; @@ -464,6 +466,11 @@ void D3D11DrawContext::HandleEvent(Event ev, int width, int height, void *param1 curRTHeight_ = height; break; } + case Event::LOST_DEVICE: + case Event::GOT_DEVICE: + case Event::RESIZED: + case Event::PRESENTED: + break; } } @@ -1168,6 +1175,8 @@ Pipeline *D3D11DrawContext::CreateGraphicsPipeline(const PipelineDesc &desc, con case ShaderStage::Geometry: dPipeline->gs = module->gs; break; + case ShaderStage::Compute: + break; } } dPipeline->shaderModules = shaders; @@ -1636,6 +1645,12 @@ void D3D11DrawContext::CopyFramebufferImage(Framebuffer *srcfb, int level, int x srcTex = src->depthStencilTex; dstTex = dst->depthStencilTex; break; + case Aspect::NO_BIT: + case Aspect::STENCIL_BIT: + case Aspect::SURFACE_BIT: + case Aspect::VIEW_BIT: + case Aspect::FORMAT_BIT: + break; } _assert_(srcTex && dstTex); @@ -1814,6 +1829,11 @@ bool D3D11DrawContext::CopyFramebufferToMemory(Framebuffer *src, Aspect channelB _assert_(false); } break; + case Aspect::NO_BIT: + case Aspect::SURFACE_BIT: + case Aspect::VIEW_BIT: + case Aspect::FORMAT_BIT: + break; } context_->Unmap(packTex.Get(), 0); diff --git a/Common/GPU/D3D9/thin3d_d3d9.cpp b/Common/GPU/D3D9/thin3d_d3d9.cpp index 87bfa32451..7fe6b81679 100644 --- a/Common/GPU/D3D9/thin3d_d3d9.cpp +++ b/Common/GPU/D3D9/thin3d_d3d9.cpp @@ -350,6 +350,10 @@ bool D3D9Texture::Create(const TextureDesc &desc) { case TextureType::CUBE: hr = device_->CreateCubeTexture(desc.width, desc.mipLevels, usage, d3dfmt_, pool, &cubeTex_, NULL); break; + case TextureType::ARRAY1D: + case TextureType::ARRAY2D: + case TextureType::UNKNOWN: + break; } if (FAILED(hr)) { ERROR_LOG(Log::G3D, "D3D9 Texture creation failed"); @@ -482,6 +486,10 @@ void D3D9Texture::SetToSampler(LPDIRECT3DDEVICE9 device, int sampler) { case TextureType::CUBE: device->SetTexture(sampler, cubeTex_.Get()); break; + case TextureType::ARRAY1D: + case TextureType::ARRAY2D: + case TextureType::UNKNOWN: + break; } } @@ -739,7 +747,7 @@ D3D9Context::D3D9Context(IDirect3D9 *d3d, IDirect3D9Ex *d3dEx, int adapterId, ID } if (SUCCEEDED(result)) { - snprintf(shadeLangVersion_, sizeof(shadeLangVersion_), "PS: %04x VS: %04x", d3dCaps_.PixelShaderVersion & 0xFFFF, d3dCaps_.VertexShaderVersion & 0xFFFF); + snprintf(shadeLangVersion_, sizeof(shadeLangVersion_), "PS: %04lx VS: %04lx", d3dCaps_.PixelShaderVersion & 0xFFFF, d3dCaps_.VertexShaderVersion & 0xFFFF); } else { WARN_LOG(Log::G3D, "Direct3D9: Failed to get the device caps!"); truncate_cpy(shadeLangVersion_, "N/A"); @@ -796,6 +804,16 @@ D3D9Context::D3D9Context(IDirect3D9 *d3d, IDirect3D9Ex *d3dEx, int adapterId, ID bugs_.Infest(Bugs::BROKEN_NAN_IN_CONDITIONAL); } break; + case Draw::GPUVendor::VENDOR_AMD: + case Draw::GPUVendor::VENDOR_APPLE: + case Draw::GPUVendor::VENDOR_ARM: + case Draw::GPUVendor::VENDOR_BROADCOM: + case Draw::GPUVendor::VENDOR_IMGTEC: + case Draw::GPUVendor::VENDOR_MESA: + case Draw::GPUVendor::VENDOR_QUALCOMM: + case Draw::GPUVendor::VENDOR_UNKNOWN: + case Draw::GPUVendor::VENDOR_VIVANTE: + break; } if (d3d) { @@ -913,11 +931,17 @@ RasterState *D3D9Context::CreateRasterState(const RasterStateDesc &desc) { switch (desc.cull) { case CullMode::FRONT: rs->cullMode = D3DCULL_CCW; break; case CullMode::BACK: rs->cullMode = D3DCULL_CW; break; + case CullMode::FRONT_AND_BACK: + case CullMode::NONE: + break; } case Facing::CCW: switch (desc.cull) { case CullMode::FRONT: rs->cullMode = D3DCULL_CW; break; case CullMode::BACK: rs->cullMode = D3DCULL_CCW; break; + case CullMode::FRONT_AND_BACK: + case CullMode::NONE: + break; } } return rs; @@ -1565,7 +1589,12 @@ bool D3D9Context::CopyFramebufferToMemory(Framebuffer *src, Aspect aspects, int _assert_(false); } break; - } + case Aspect::NO_BIT: + case Aspect::SURFACE_BIT: + case Aspect::VIEW_BIT: + case Aspect::FORMAT_BIT: + break; + } } if (aspects != Aspect::COLOR_BIT) { @@ -1589,6 +1618,9 @@ void D3D9Context::HandleEvent(Event ev, int width, int height, void *param1, voi device_->GetDepthStencilSurface(&deviceDSsurf); break; case Event::PRESENTED: + case Event::GOT_DEVICE: + case Event::LOST_DEVICE: + case Event::RESIZED: break; } } diff --git a/Common/GPU/Vulkan/thin3d_vulkan.cpp b/Common/GPU/Vulkan/thin3d_vulkan.cpp index b744235b89..b0a61a63ba 100644 --- a/Common/GPU/Vulkan/thin3d_vulkan.cpp +++ b/Common/GPU/Vulkan/thin3d_vulkan.cpp @@ -802,13 +802,15 @@ bool VKTexture::Create(VkCommandBuffer cmd, VulkanBarrierBatch *postBarriers, Vu usageBits |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT; } - VkComponentMapping r8AsAlpha[4] = { VK_COMPONENT_SWIZZLE_ONE, VK_COMPONENT_SWIZZLE_ONE, VK_COMPONENT_SWIZZLE_ONE, VK_COMPONENT_SWIZZLE_R }; - VkComponentMapping r8AsColor[4] = { VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_ONE }; + VkComponentMapping r8AsAlpha[4] = { {VK_COMPONENT_SWIZZLE_ONE, VK_COMPONENT_SWIZZLE_ONE, VK_COMPONENT_SWIZZLE_ONE, VK_COMPONENT_SWIZZLE_R} }; + VkComponentMapping r8AsColor[4] = { {VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_ONE} }; VkComponentMapping *swizzle = nullptr; switch (desc.swizzle) { case TextureSwizzle::R8_AS_ALPHA: swizzle = r8AsAlpha; break; case TextureSwizzle::R8_AS_GRAYSCALE: swizzle = r8AsColor; break; + case TextureSwizzle::DEFAULT: + break; } VulkanBarrierBatch barrier; if (!vkTex_->CreateDirect(width_, height_, 1, mipLevels_, vulkanFormat, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, usageBits, &barrier, swizzle)) { diff --git a/Common/Log/ConsoleListener.cpp b/Common/Log/ConsoleListener.cpp index a27f922585..302571c1d2 100644 --- a/Common/Log/ConsoleListener.cpp +++ b/Common/Log/ConsoleListener.cpp @@ -412,14 +412,14 @@ void ConsoleListener::WriteToConsole(LogLevel Level, const char *Text, size_t Le if (Len > 10) { // First 10 chars white SetConsoleTextAttribute(hConsole, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY); - int wlen = MultiByteToWideChar(CP_UTF8, 0, Text, (int)Len, NULL, NULL); + int wlen = MultiByteToWideChar(CP_UTF8, 0, Text, (int)Len, NULL, 0); MultiByteToWideChar(CP_UTF8, 0, Text, (int)Len, tempBuf, wlen); WriteConsole(hConsole, tempBuf, 10, &cCharsWritten, NULL); Text += 10; Len -= 10; } SetConsoleTextAttribute(hConsole, Color); - int wlen = MultiByteToWideChar(CP_UTF8, 0, Text, (int)Len, NULL, NULL); + int wlen = MultiByteToWideChar(CP_UTF8, 0, Text, (int)Len, NULL, 0); MultiByteToWideChar(CP_UTF8, 0, Text, (int)Len, tempBuf, wlen); WriteConsole(hConsole, tempBuf, (DWORD)wlen, &cCharsWritten, NULL); } diff --git a/Common/TimeUtil.cpp b/Common/TimeUtil.cpp index 57a0f35597..b1a1798136 100644 --- a/Common/TimeUtil.cpp +++ b/Common/TimeUtil.cpp @@ -285,7 +285,7 @@ void sleep_precise(double seconds) { LARGE_INTEGER due; due.QuadPart = -(sleepTicks > maxTicks ? maxTicks : sleepTicks); // Note: SetWaitableTimerEx is not available on Vista. - SetWaitableTimer(Timer, &due, 0, NULL, NULL, NULL); + SetWaitableTimer(Timer, &due, 0, NULL, NULL, FALSE); WaitForSingleObject(Timer, INFINITE); QueryPerformanceCounter(&qpc); } diff --git a/Core/Debugger/SymbolMap.cpp b/Core/Debugger/SymbolMap.cpp index ab526ed662..cf983f311a 100644 --- a/Core/Debugger/SymbolMap.cpp +++ b/Core/Debugger/SymbolMap.cpp @@ -1135,6 +1135,9 @@ void SymbolMap::FillSymbolListBox(HWND listbox,SymbolType symType) { } } break; + case ST_NONE: + case ST_ALL: + break; } SendMessage(listbox, WM_SETREDRAW, TRUE, 0); diff --git a/Core/MIPS/IR/IRFrontend.cpp b/Core/MIPS/IR/IRFrontend.cpp index 65cfedf1cf..4300036f75 100644 --- a/Core/MIPS/IR/IRFrontend.cpp +++ b/Core/MIPS/IR/IRFrontend.cpp @@ -310,7 +310,7 @@ void IRFrontend::DoJit(u32 em_address, std::vector &instructions, u32 &m instructions.reserve(block_instructions.capacity()); // The first instruction is "Downcount" instructions.push_back(block_instructions.front()); - instructions.push_back({ IROp::LogIRBlock, 0, 0, 0, 0 }); + instructions.push_back({ IROp::LogIRBlock, {0}, 0, 0, 0 }); std::copy(block_instructions.begin() + 1, block_instructions.end(), std::back_inserter(instructions)); } diff --git a/Core/MIPS/MIPSVFPUUtils.cpp b/Core/MIPS/MIPSVFPUUtils.cpp index ee55a8715b..ec765256f7 100644 --- a/Core/MIPS/MIPSVFPUUtils.cpp +++ b/Core/MIPS/MIPSVFPUUtils.cpp @@ -964,25 +964,25 @@ uint32_t vrnd_generate(uint32_t *rcx) { // Lookup tables. // Note: these are never unloaded, and stay till program termination. -static uint32_t (*vfpu_sin_lut8192)=nullptr; +static uint32_t *vfpu_sin_lut8192=nullptr; static int8_t (*vfpu_sin_lut_delta)[2]=nullptr; -static int16_t (*vfpu_sin_lut_interval_delta)=nullptr; -static uint8_t (*vfpu_sin_lut_exceptions)=nullptr; +static int16_t *vfpu_sin_lut_interval_delta=nullptr; +static uint8_t *vfpu_sin_lut_exceptions=nullptr; static int8_t (*vfpu_sqrt_lut)[2]=nullptr; static int8_t (*vfpu_rsqrt_lut)[2]=nullptr; -static uint32_t (*vfpu_exp2_lut65536)=nullptr; +static uint32_t *vfpu_exp2_lut65536=nullptr; static uint8_t (*vfpu_exp2_lut)[2]=nullptr; -static uint32_t (*vfpu_log2_lut65536)=nullptr; -static uint32_t (*vfpu_log2_lut65536_quadratic)=nullptr; +static uint32_t *vfpu_log2_lut65536=nullptr; +static uint32_t *vfpu_log2_lut65536_quadratic=nullptr; static uint8_t (*vfpu_log2_lut)[131072][2]=nullptr; static int32_t (*vfpu_asin_lut65536)[3]=nullptr; -static uint64_t (*vfpu_asin_lut_deltas)=nullptr; -static uint16_t (*vfpu_asin_lut_indices)=nullptr; +static uint64_t *vfpu_asin_lut_deltas=nullptr; +static uint16_t *vfpu_asin_lut_indices=nullptr; static int8_t (*vfpu_rcp_lut)[2]=nullptr; diff --git a/GPU/Directx9/ShaderManagerDX9.cpp b/GPU/Directx9/ShaderManagerDX9.cpp index f44cb97730..2ec897cc00 100644 --- a/GPU/Directx9/ShaderManagerDX9.cpp +++ b/GPU/Directx9/ShaderManagerDX9.cpp @@ -669,6 +669,12 @@ std::vector ShaderManagerDX9::DebugGetShaderIDs(DebugShaderType typ ids.push_back(id); } break; + case SHADER_TYPE_GEOMETRY: + case SHADER_TYPE_PIPELINE: + case SHADER_TYPE_SAMPLER: + case SHADER_TYPE_TEXTURE: + case SHADER_TYPE_VERTEXLOADER: + break; } return ids; } diff --git a/UI/BackgroundAudio.cpp b/UI/BackgroundAudio.cpp index a4adcc444f..8356a56792 100644 --- a/UI/BackgroundAudio.cpp +++ b/UI/BackgroundAudio.cpp @@ -578,7 +578,7 @@ public: TaskPriority Priority() const override { return TaskPriority::NORMAL; } - virtual void Run() override { + void Run() override { mixer_->LoadSamplesOnThread(); } private: diff --git a/UI/ImDebugger/ImDebugger.cpp b/UI/ImDebugger/ImDebugger.cpp index 155868ab78..d366ae66fc 100644 --- a/UI/ImDebugger/ImDebugger.cpp +++ b/UI/ImDebugger/ImDebugger.cpp @@ -1622,6 +1622,8 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug, GPUDebugInterface *gpuDebu break; case ImCmd::NONE: break; + case ImCmd::SHOW_IN_PIXEL_VIEWER: + break; } } diff --git a/Windows/CaptureDevice.cpp b/Windows/CaptureDevice.cpp index 2aad978e29..59a831158f 100644 --- a/Windows/CaptureDevice.cpp +++ b/Windows/CaptureDevice.cpp @@ -924,6 +924,8 @@ void WindowsCaptureDevice::messageHandler() { case CAPTUREDEVIDE_COMMAND::UPDATE_STATE: updateState((*(CAPTUREDEVIDE_STATE *)message.opacity)); break; + case CAPTUREDEVIDE_COMMAND::SHUTDOWN: + break; } } diff --git a/Windows/Debugger/DumpMemoryWindow.cpp b/Windows/Debugger/DumpMemoryWindow.cpp index f8936c2890..6d90a2c1ca 100644 --- a/Windows/Debugger/DumpMemoryWindow.cpp +++ b/Windows/Debugger/DumpMemoryWindow.cpp @@ -249,6 +249,8 @@ void DumpMemoryWindow::changeMode(HWND hwnd, Mode newMode) size = PSP_GetScratchpadMemoryEnd()-start; defaultFileName = "Scratchpad.dump"; break; + case MODE_CUSTOM: + break; } snprintf(buffer, sizeof(buffer), "0x%08X", start); diff --git a/Windows/GEDebugger/TabDisplayLists.cpp b/Windows/GEDebugger/TabDisplayLists.cpp index 5ef0237587..ed79d6a335 100644 --- a/Windows/GEDebugger/TabDisplayLists.cpp +++ b/Windows/GEDebugger/TabDisplayLists.cpp @@ -226,9 +226,9 @@ void TabDisplayLists::UpdateSize(WORD width, WORD height) } } -void TabDisplayLists::Update(bool reload) +void TabDisplayLists::Update() { - if (reload && gpuDebug != NULL) + if (gpuDebug != NULL) { lists = gpuDebug->ActiveDisplayLists(); } diff --git a/Windows/GEDebugger/TabDisplayLists.h b/Windows/GEDebugger/TabDisplayLists.h index b4e7e4d36d..d70e44f9fa 100644 --- a/Windows/GEDebugger/TabDisplayLists.h +++ b/Windows/GEDebugger/TabDisplayLists.h @@ -47,7 +47,7 @@ class TabDisplayLists : public Dialog public: TabDisplayLists(HINSTANCE _hInstance, HWND _hParent); ~TabDisplayLists(); - void Update(bool reload = true); + void Update() override; protected: BOOL DlgProc(UINT message, WPARAM wParam, LPARAM lParam) override; private: diff --git a/Windows/GEDebugger/TabState.cpp b/Windows/GEDebugger/TabState.cpp index 237ab0f379..a90caa66a6 100644 --- a/Windows/GEDebugger/TabState.cpp +++ b/Windows/GEDebugger/TabState.cpp @@ -473,7 +473,7 @@ bool CtrlStateValues::OnRowPrePaint(int row, LPNMLVCUSTOMDRAW msg) { } void CtrlStateValues::SetCmdValue(u32 op) { - SendMessage(GetParent(GetParent(GetHandle())), WM_GEDBG_SETCMDWPARAM, op, NULL); + SendMessage(GetParent(GetParent(GetHandle())), WM_GEDBG_SETCMDWPARAM, op, 0); Update(); } diff --git a/Windows/GEDebugger/TabVertices.cpp b/Windows/GEDebugger/TabVertices.cpp index 5e6a56d016..ea06a25097 100644 --- a/Windows/GEDebugger/TabVertices.cpp +++ b/Windows/GEDebugger/TabVertices.cpp @@ -490,7 +490,7 @@ void CtrlMatrixList::OnDoubleClick(int row, int column) { if (sscanf(strvalue.c_str(), "%f", &val) == 1) { auto prevState = gpuDebug->GetGState(); auto setCmdValue = [&](u32 op) { - SendMessage(GetParent(GetParent(GetHandle())), WM_GEDBG_SETCMDWPARAM, op, NULL); + SendMessage(GetParent(GetParent(GetHandle())), WM_GEDBG_SETCMDWPARAM, op, 0); }; union { diff --git a/Windows/WASAPIStream.cpp b/Windows/WASAPIStream.cpp index f1fd07a847..c8bbd99569 100644 --- a/Windows/WASAPIStream.cpp +++ b/Windows/WASAPIStream.cpp @@ -361,14 +361,14 @@ bool WASAPIAudioThread::DetectFormat() { } else { wchar_t guid[256]{}; StringFromGUID2(closest->SubFormat, guid, 256); - ERROR_LOG_REPORT_ONCE(badfallbackclosest, Log::sceAudio, "WASAPI fallback and closest unsupported (fmt=%04x/%s)", closest->Format.wFormatTag, guid); + ERROR_LOG_REPORT_ONCE(badfallbackclosest, Log::sceAudio, "WASAPI fallback and closest unsupported (fmt=%04x/%s)", closest->Format.wFormatTag, ConvertWStringToUTF8(guid).c_str()); CoTaskMemFree(closest); return false; } } else { CoTaskMemFree(closest); if (hr != AUDCLNT_E_DEVICE_INVALIDATED && hr != AUDCLNT_E_SERVICE_NOT_RUNNING) - ERROR_LOG_REPORT_ONCE(badfallback, Log::sceAudio, "WASAPI fallback format was unsupported (%08x)", hr); + ERROR_LOG_REPORT_ONCE(badfallback, Log::sceAudio, "WASAPI fallback format was unsupported (%08lx)", hr); return false; } } @@ -514,6 +514,8 @@ void WASAPIAudioThread::Run() { case Format::PCM16: callback_((short *)pData, pNumAvFrames, sampleRate_); break; + case Format::UNKNOWN: + break; } } diff --git a/Windows/main.cpp b/Windows/main.cpp index dec7d3f5e1..8512ed5c38 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -501,6 +501,17 @@ void System_Notify(SystemNotification notification) { } break; } + case SystemNotification::AUDIO_RESET_DEVICE: + case SystemNotification::FORCE_RECREATE_ACTIVITY: + case SystemNotification::IMMERSIVE_MODE_CHANGE: + case SystemNotification::SUSTAINED_PERF_CHANGE: + case SystemNotification::ROTATE_UPDATED: + case SystemNotification::TEST_JAVA_EXCEPTION: + break; + case SystemNotification::UI_STATE_CHANGED: + case SystemNotification::AUDIO_MODE_CHANGED: + case SystemNotification::APP_SWITCH_MODE_CHANGED: + break; } }