Build/warning fix

This commit is contained in:
Henrik Rydgård 2022-10-18 10:48:16 +02:00
parent feb4f9477a
commit 269eb55c17
3 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,6 @@
#if !defined(_WIN32)
#include <pthread.h>
#include <sys/prctl.h>
#endif
double FromXrTime(const XrTime time) {

View File

@ -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 <sys/time.h>
unsigned long sys_timeBase = 0;
int milliseconds(void) {
struct timeval tp;

View File

@ -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;
}