More warning and compile fixes.

This commit is contained in:
OBattler
2023-08-08 15:38:40 +02:00
parent 87651a2cb3
commit ce5e21f870
13 changed files with 28 additions and 23 deletions

View File

@@ -91,6 +91,7 @@ static int host_cpu_features_by_cpuid(void)
return features;
}
#if (RESID_USE_SSE==1)
static int host_cpu_features(void)
{
static int features = 0;
@@ -152,6 +153,7 @@ static int host_cpu_features(void)
return 0;
}
#endif
#endif
float SIDFP::kinked_dac(const int x, const float nonlinearity, const int max)
{

View File

@@ -587,7 +587,7 @@ ac97_codec_init(const device_t *info)
break;
}
if (dev->model >= (sizeof(ac97_codecs) / sizeof(ac97_codecs[0]))) {
fatal("AC97 Codec %d: Unknown ID %c%c%c%02X\n", ac97_codec_id, (info->local >> 24) & 0xff, (info->local >> 16) & 0xff, (info->local >> 8) & 0xff, info->local & 0xff);
fatal("AC97 Codec %d: Unknown ID %c%c%c%02X\n", ac97_codec_id, (uint32_t) ((info->local >> 24) & 0xff), (uint32_t) ((info->local >> 16) & 0xff), (uint32_t) ((info->local >> 8) & 0xff), (uint32_t) (info->local & 0xff));
free(dev);
return NULL;
}