rockbox/firmware
Solomon Peachy 9dce0c3258 Work around a false positive compiler warning in pcm_switch_sink()
CC firmware/pcm.c
firmware/pcm.c: In function ‘pcm_switch_sink’:
firmware/pcm.c:311:38: warning: array subscript 1 is above array bounds of ‘struct pcm_sink *[1]’ [-Warray-bounds]
  311 |     struct pcm_sink* old_sink = sinks[cur_sink];
      |                                 ~~~~~^~~~~~~~~~
firmware/pcm.c:79:25: note: while referencing ‘sinks’
   79 | static struct pcm_sink* sinks[PCM_SINK_NUM] = {
      |

PCM_SINK_NUM is 1, and cur_sink is initialized to 0.  It can never be set
above 0.  cur_sink can never be >= PCM_SINK_NUM, ie 0, but for some reason
the compiler thinks otherwise.... sometimes.

This only shows up on native ARM builds with GCC9.5.0

Change-Id: I1aa731a4ee21c46a264c8b70833e3b43e777e8a7
2026-04-17 21:56:38 -04:00
..
asm Remove Creative Zen Vision and Vision:M ports 2026-02-06 07:31:54 -05:00
common Fix yellow in c72ffa7a9a ("diacritic: Critical bugfixes") 2026-03-10 10:14:42 +00:00
drivers sdmmc_host: mark tCardInfo initialized at end of card init 2026-03-02 17:11:33 -05:00
export Work around a false positive compiler warning in pcm_switch_sink() 2026-04-17 21:56:38 -04:00
include firmware: add copyright headers to core_alloc.c/h 2026-03-09 10:26:18 +00:00
kernel 3ds: Various fixes, mostly for compiler warnings 2026-03-13 10:24:36 -04:00
libc lua -- remove strtol and strtoul replace with rb->strtol and rb->strtoul 2025-12-06 18:11:13 -05:00
reggen echoplayer: implement ADC to read battery voltage 2026-03-18 12:51:51 +00:00
target hiby: ability to add/remove input device 2026-04-16 08:03:06 -04:00
usbstack pcm_mixer: introduce mixer_play_cbs 2026-04-14 06:47:36 -04:00
arabjoin.c
arabjoin.h
ata_idle_notify.c
backlight-sw-fading.c backlight-sw-fading: FS#13717 fix brightness overshoot 2025-12-19 08:20:07 +01:00
backlight.c backlight: Fix dimmed display doesn't go to sleep 2026-02-25 13:07:38 -05:00
bidi.c
buflib_malloc.c
buflib_mempool.c
chunk_alloc.c
COPYING
core_alloc.c firmware: add copyright headers to core_alloc.c/h 2026-03-09 10:26:18 +00:00
debug.c
eeprom_settings.c
elf_loader.c elf_loader: add elf_loadmem() to load file from memory 2026-01-25 19:51:07 -05:00
enc_base.c
events.c
firmware.make make: remove asm.make and use asm/SOURCES directly 2026-01-08 16:41:57 +00:00
font.c font: logf: fix pointer in buflibmove_callback 2026-01-10 07:11:51 +01:00
font_cache.c
general.c
hangul.c
lc-rock.c firmware: introduce CONFIG_BINFMT 2026-01-05 13:14:30 -05:00
linuxboot.c
logf.c
lru.c
panic.c
pcm.c Work around a false positive compiler warning in pcm_switch_sink() 2026-04-17 21:56:38 -04:00
pcm_mixer.c pcm_mixer: implement mixer_switch_sink 2026-04-17 20:54:10 -04:00
pcm_sampr.c
pcm_sw_volume.c pcm: introduce pcm_sink 2026-03-02 10:09:11 +09:00
powermgmt.c
profile.c
README
rolo.c
rom.lds
screendump.c
scroll_engine.c pass event data to usb_acknowledge 2026-01-26 19:47:09 -05:00
sdmmc.c
sound.c Fix red in 36f34089d6 2026-03-28 12:41:43 -04:00
SOURCES bootloader: Don't compile sound.c in bootloader builds 2026-03-28 12:43:59 -04:00
storage.c bootloaders: Don't build usb_core without HAVE_BOOTLOADER_USB_MODE 2026-02-07 08:46:10 -05:00
system.c
timer.c
tuner.c
usb.c bootloaders: Don't build usb_core without HAVE_BOOTLOADER_USB_MODE 2026-02-07 08:46:10 -05:00

See docs/README