From 974b1e39e0268ebb07837dc1a66395bfb2afb69d Mon Sep 17 00:00:00 2001 From: Tedd OKANO Date: Fri, 4 Apr 2025 16:19:27 +0900 Subject: [PATCH 1/2] enabling to build on macOS15.4 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 303a527..5be80cd 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ endif CFLAGS += -Wall -ifneq ($(findstring darwin,$(OSTYPE)),) +ifneq ($(findstring Darwin,$(OSTYPE)),) CFLAGS+=-D__APPLE__ else CFLAGS += -static From 6abb8fbe579308cf655823550a829edcc0950af0 Mon Sep 17 00:00:00 2001 From: Tedd OKANO Date: Fri, 4 Apr 2025 16:23:43 +0900 Subject: [PATCH 2/2] suppressing warning for "-Wunused-but-set-variable" --- lpc21isp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lpc21isp.c b/lpc21isp.c index ad1cdcb..98f5500 100644 --- a/lpc21isp.c +++ b/lpc21isp.c @@ -1212,7 +1212,9 @@ void ReceiveComPort(ISP_ENVIRONMENT *IspEnvironment, { unsigned long tmp_realsize; unsigned long nr_of_0x0A = 0; +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" unsigned long nr_of_0x0D = 0; +#pragma GCC diagnostic warning "-Wunused-but-set-variable" int eof = 0; unsigned long p; unsigned char *Answer;