From 6613ff73343f87661c0a52aba17febf7f1ecd5c5 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Tue, 14 Jan 2025 20:35:45 -0800 Subject: [PATCH] Workaround old GCC on Windows builds This is supported for GCC >= version 13 See GCC bug 85487: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85487 --- armsrc/spiffs_check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/spiffs_check.c b/armsrc/spiffs_check.c index 8a190b8aca..c35bc3e1f1 100644 --- a/armsrc/spiffs_check.c +++ b/armsrc/spiffs_check.c @@ -540,7 +540,7 @@ static s32_t spiffs_page_consistency_check_i(spiffs *fs) { uint32_t total_blocks = SPIFFS_PAGES_PER_BLOCK(fs) * block_count; uint32_t total_blocks_plus_one_page = total_blocks + SPIFFS_PAGES_PER_BLOCK(fs); -#pragma region // check for overflow once, before looping +//#pragma region // check for overflow once, before looping // this _should_ never happen, but prefer to see debug message / error // rather than silently entering infinite loop. if (block_count > ((spiffs_block_ix)(-1))) { @@ -568,7 +568,7 @@ static s32_t spiffs_page_consistency_check_i(spiffs *fs) { } // RESULT: spiffs_page_ix can safely be used for loop index vs. each of // block_count, total_blocks, and total_blocks_plus_one_page -#pragma endregion // check for overflow once, before looping +//#pragma endregion // check for overflow once, before looping // for each range of pages fitting into work memory