From: notaz Date: Sat, 5 Oct 2024 23:56:57 +0000 (+0300) Subject: deal with some platform-specific warnings X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de0ed23db1caf164f27fb98b3e8a5cdfc0333292;p=pcsx_rearmed.git deal with some platform-specific warnings --- 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