From 269eb55c1741ee2caebabf40a8c88656b842cf79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 18 Oct 2022 10:48:16 +0200 Subject: [PATCH] Build/warning fix --- Common/VR/VRFramebuffer.cpp | 1 - Common/VR/VRInput.cpp | 2 ++ GPU/Common/TextureCacheCommon.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Common/VR/VRFramebuffer.cpp b/Common/VR/VRFramebuffer.cpp index 3cf70642a9..34e3a3cbb4 100644 --- a/Common/VR/VRFramebuffer.cpp +++ b/Common/VR/VRFramebuffer.cpp @@ -10,7 +10,6 @@ #if !defined(_WIN32) #include -#include #endif double FromXrTime(const XrTime time) { diff --git a/Common/VR/VRInput.cpp b/Common/VR/VRInput.cpp index 58571b47f1..7ea64f9674 100644 --- a/Common/VR/VRInput.cpp +++ b/Common/VR/VRInput.cpp @@ -40,6 +40,8 @@ float vibration_channel_duration[2] = {0.0f, 0.0f}; float vibration_channel_intensity[2] = {0.0f, 0.0f}; #if !defined(_WIN32) +#include + unsigned long sys_timeBase = 0; int milliseconds(void) { struct timeval tp; diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 0ee2c54b10..a0c7180588 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -2045,6 +2045,7 @@ static bool CanDepalettize(GETextureFormat texFormat, GEBufferFormat bufferForma } break; case GE_FORMAT_CLUT8: + case GE_FORMAT_INVALID: // Shouldn't happen here. return false; }