From bb257425120935df6ca6790fb70def8d642a8287 Mon Sep 17 00:00:00 2001 From: rogerman Date: Wed, 6 Feb 2019 18:43:11 -0800 Subject: [PATCH] GPU: Fix some compiler warnings. --- desmume/src/GPU.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index 026bf14cb..7f222ce18 100755 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -8287,6 +8287,8 @@ __m128i GPUEngineA::_RenderLine_DispCapture_BlendFunc_SSE2(const __m128i &srcA, return outColor; } } + + return srcA; } #endif @@ -8558,8 +8560,6 @@ void GPUEngineA::_HandleDisplayModeMainMemory(const GPUEngineLineInfo &lineInfo) case NDSColorFormat_BGR888_Rev: { FragmentColor *__restrict dst = (FragmentColor *__restrict)this->_nativeBuffer + (lineInfo.indexNative * GPU_FRAMEBUFFER_NATIVE_WIDTH); - __m128i dstLo; - __m128i dstHi; for (size_t i = 0, d = 0; i < GPU_FRAMEBUFFER_NATIVE_WIDTH * sizeof(u16) / sizeof(__m128i); i++, d+=2) { @@ -8569,6 +8569,9 @@ void GPUEngineA::_HandleDisplayModeMainMemory(const GPUEngineLineInfo &lineInfo) const u32 srcD = DISP_FIFOrecv(); const __m128i fifoColor = _mm_setr_epi32(srcA, srcB, srcC, srcD); + __m128i dstLo = _mm_setzero_si128(); + __m128i dstHi = _mm_setzero_si128(); + if (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) { ColorspaceConvert555To6665Opaque_SSE2(fifoColor, dstLo, dstHi);