From ce8a4f5cc59c4c6e4a28293959cd3f4b6592e3f0 Mon Sep 17 00:00:00 2001 From: Rohit Nirmal Date: Tue, 30 Sep 2014 11:43:53 -0400 Subject: [PATCH] VideoCommon: Silence -Wmaybe-uninitialized warnings. --- Source/Core/VideoCommon/Fifo.cpp | 2 +- Source/Core/VideoCommon/RenderBase.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index d71e3e47d2..de815012f7 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -424,7 +424,7 @@ void Fifo_UpdateWantDeterminism(bool want) // We are paused (or not running at all yet) and have m_csHWVidOccupied, so // it should be safe to change this. const SCoreStartupParameter& param = SConfig::GetInstance().m_LocalCoreStartupParameter; - bool gpu_thread; + bool gpu_thread = false; switch (param.m_GPUDeterminismMode) { case GPU_DETERMINISM_AUTO: diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 0e5dbba3cf..ee31d50ff0 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -169,6 +169,7 @@ void Renderer::CalculateTargetScale(int x, int y, int &scaledX, int &scaledY) bool Renderer::CalculateTargetSize(unsigned int framebuffer_width, unsigned int framebuffer_height) { int newEFBWidth, newEFBHeight; + newEFBWidth = newEFBHeight = 0; // TODO: Ugly. Clean up switch (s_LastEFBScale)