From e733d528668cf75e1db580a5b97a548bc437512e Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 5 Mar 2026 22:18:00 +0000 Subject: [PATCH] pico: add an #ifdef RP2350 around find_flash_offset This is only used here and caused unused function warnings otherwise. --- 32blit-pico/blit_launch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/32blit-pico/blit_launch.cpp b/32blit-pico/blit_launch.cpp index 3ad34c50d..9f6d2bdca 100644 --- a/32blit-pico/blit_launch.cpp +++ b/32blit-pico/blit_launch.cpp @@ -66,6 +66,7 @@ static uint32_t calc_num_blocks(uint32_t size) { return (size - 1) / game_block_size + 1; } +#ifdef PICO_RP2350 static uint32_t find_flash_offset(uint32_t requested_size) { uint32_t free_off = 0; // 0 is invalid as that's where the loader is @@ -101,6 +102,7 @@ static uint32_t find_flash_offset(uint32_t requested_size) { return 0; } +#endif static bool read_file_metadata(void *file, RawMetadata &meta, RawTypeMetadata &type_meta) { // read header and check magic