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>
Sat, 5 Oct 2024 23:56:57 +0000 (02:56 +0300)
Makefile.libretro
libpcsxcore/misc.c
plugins/dfsound/spu.c

index cf976ba..37bcd84 100644 (file)
@@ -62,6 +62,10 @@ else ifeq ($(platform), ctr)
        CC = $(DEVKITARM)/bin/arm-none-eabi-gcc$(EXE_EXT)
        CXX = $(DEVKITARM)/bin/arm-none-eabi-g++$(EXE_EXT)
        AR = $(DEVKITARM)/bin/arm-none-eabi-ar$(EXE_EXT)
+else ifeq ($(platform), libnx)
+       export DEPSDIR := $(CURDIR)/
+       include $(DEVKITPRO)/libnx/switch_rules
+       SHELL := PATH=$(PATH) $(SHELL)
 else ifeq ($(platform), xenon)
        CC = xenon-gcc$(EXE_EXT)
        AR = xenon-ar$(EXE_EXT)
@@ -237,8 +241,6 @@ endif
 
 # Nintendo Switch (libnx)
 else ifeq ($(platform), libnx)
-   export DEPSDIR := $(CURDIR)/
-   include $(DEVKITPRO)/libnx/switch_rules
    TARGET := $(TARGET_NAME)_libretro_$(platform).a
    ARCH := arm64
    HAVE_VFS_FD = 0
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 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