From 5424d9d36a364ba9c73955c500d16773f543bb9c Mon Sep 17 00:00:00 2001 From: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Date: Mon, 6 Oct 2025 17:24:02 +0530 Subject: [PATCH] Downgrade return-mismatch error to warning (#1374) portYIELD_FROM_ISR(x) is defined as 'return x' in the Windows port which causes compilation failures in the WIN32-MinGW demo when using GCC 14. Failure: https://github.com/FreeRTOS/FreeRTOS-Kernel/actions/runs/18272553628/job/52017559140?pr=1317 Signed-off-by: Gaurav Aggarwal --- FreeRTOS/Demo/WIN32-MingW/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeRTOS/Demo/WIN32-MingW/Makefile b/FreeRTOS/Demo/WIN32-MingW/Makefile index dc3a1feb2bc..c58711d4d1e 100644 --- a/FreeRTOS/Demo/WIN32-MingW/Makefile +++ b/FreeRTOS/Demo/WIN32-MingW/Makefile @@ -3,7 +3,7 @@ BUILD_DIR := ./build # Compiler - Note this expects you are using MinGW version of GCC CC := gcc -CFLAGS := -O0 -g3 -Wall -Wextra -c -fmessage-length=0 -Wcast-qual -D_WIN32_WINNT=0x0601 +CFLAGS := -O0 -g3 -Wall -Wextra -c -fmessage-length=0 -Wcast-qual -Wno-error=return-mismatch -D_WIN32_WINNT=0x0601 ifeq ($(COVERAGE_TEST),1) CFLAGS += -DprojCOVERAGE_TEST=1