deal with some platform-specific warnings
authornotaz <notasas@gmail.com>
Sat, 5 Oct 2024 23:56:57 +0000 (02:56 +0300)
committernotaz <notasas@gmail.com>
Mon, 7 Oct 2024 22:47:54 +0000 (01:47 +0300)
libpcsxcore/misc.c
libpcsxcore/new_dynarec/assem_arm.c
plugins/dfsound/spu.c

index 68982ab..3966587 100644 (file)
@@ -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];
                }
        }
index 70798ef..308f4a0 100644 (file)
@@ -19,6 +19,7 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
+#include <strings.h> // ffs
 #define FLAGLESS
 #include "../gte.h"
 #undef FLAGLESS
index ed5b4b5..bc9cbf1 100644 (file)
@@ -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