diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index dec7302a9d..fda38c70f6 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -695,7 +695,7 @@ bool TextureCacheCommon::GetBestFramebufferCandidate(const TextureDefinition &en if (bestIndex != -1) { if (logging) { - WARN_LOG(G3D, "Chose candidate %d:\n%s\n", bestIndex, candidates[bestIndex].ToString().c_str()); + WARN_LOG(G3D, "Chose candidate %d:\n%s\n", (int)bestIndex, candidates[bestIndex].ToString().c_str()); } *bestCandidate = candidates[bestIndex]; return true; @@ -888,6 +888,7 @@ bool TextureCacheCommon::MatchFramebuffer( case GE_TFMT_DXT3: case GE_TFMT_DXT5: return false; + default: break; } uint32_t fb_stride_in_bytes = fb_stride * BufferFormatBytesPerPixel(fb_format); @@ -1868,9 +1869,10 @@ static bool CanDepalettize(GETextureFormat texFormat, GEBufferFormat bufferForma return true; } break; + default: + WARN_LOG(G3D, "Invalid CLUT/framebuffer combination: %s vs %s", GeTextureFormatToString(texFormat), GeBufferFormatToString(bufferFormat)); + return false; } - WARN_LOG(G3D, "Invalid CLUT/framebuffer combination: %s vs %s", GeTextureFormatToString(texFormat), GeBufferFormatToString(bufferFormat)); - return false; } else if (texFormat == GE_TFMT_5650 && bufferFormat == GE_FORMAT_DEPTH16) { // We can also "depal" 565 format, this is used to read depth buffers as 565 on occasion (#15491). return true; @@ -1899,6 +1901,9 @@ static bool CanUseSmoothDepal(const GPUgstate &gstate, GEBufferFormat framebuffe return gstate.getClutIndexMask() == 0x1F; } break; + default: + // No uses for the other formats yet, add if needed. + break; } } return false; diff --git a/GPU/GPU.h b/GPU/GPU.h index ddf9c36fc4..5410fb43d5 100644 --- a/GPU/GPU.h +++ b/GPU/GPU.h @@ -19,6 +19,7 @@ #pragma once #include +#include class GPUInterface; class GPUDebugInterface;