From de0ed23db1caf164f27fb98b3e8a5cdfc0333292 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 6 Oct 2024 02:56:57 +0300 Subject: [PATCH] deal with some platform-specific warnings --- libpcsxcore/misc.c | 2 +- libpcsxcore/new_dynarec/assem_arm.c | 1 + plugins/dfsound/spu.c | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index 68982abd..39665872 100644 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -432,7 +432,7 @@ int CheckCdrom() { for (i = 0; i < len; ++i) { if (exename[i] == ';' || c >= sizeof(CdromId) - 1) break; - if (isalnum(exename[i])) + if (isalnum((int)exename[i])) CdromId[c++] = exename[i]; } } diff --git a/libpcsxcore/new_dynarec/assem_arm.c b/libpcsxcore/new_dynarec/assem_arm.c index 70798eff..308f4a00 100644 --- a/libpcsxcore/new_dynarec/assem_arm.c +++ b/libpcsxcore/new_dynarec/assem_arm.c @@ -19,6 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +#include // ffs #define FLAGLESS #include "../gte.h" #undef FLAGLESS diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index ed5b4b5c..bc9cbf11 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -1723,6 +1723,9 @@ void spu_get_debug_info(int *chans_out, int *run_chans, int *fmod_chans_out, int *run_chans = ~spu.dwChannelsAudible & ~spu.dwChannelDead & irq_chans; *fmod_chans_out = fmod_chans; *noise_chans_out = noise_chans; + // sometimes unused + (void)do_samples_skip_fmod; + (void)SkipADSR; } // vim:shiftwidth=1:expandtab -- 2.39.5