From da94fc052d8190122f654803c23f09b4ddef8333 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 30 Jan 2023 19:01:43 +0100 Subject: [PATCH] fix compile errors on OSX for standalone --- Makefile | 2 +- lib_standalone/Arduino.h | 2 +- src/helpers.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e2330ea08..39194eda2 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,7 @@ CPPFLAGS += -g3 CPPFLAGS += -Os CFLAGS += $(CPPFLAGS) -CFLAGS += -Wall -Wextra -Werror -Wswitch-enum -Wno-unused-parameter +CFLAGS += -Wall -Wextra -Werror -Wswitch-enum -Wno-unused-parameter -Wno-inconsistent-missing-override -Wno-unused-lambda-capture CXXFLAGS += $(CFLAGS) -MMD diff --git a/lib_standalone/Arduino.h b/lib_standalone/Arduino.h index d748519e2..afacf2578 100644 --- a/lib_standalone/Arduino.h +++ b/lib_standalone/Arduino.h @@ -153,7 +153,7 @@ class NativeConsole : public Stream { } } - size_t write(const uint8_t * buffer, size_t size) { + size_t write(const uint8_t * buffer, size_t size) override { if (::write(STDOUT_FILENO, buffer, size) == (ssize_t)size) { return size; } else { diff --git a/src/helpers.cpp b/src/helpers.cpp index b50b76c38..a0769c8d1 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -692,7 +692,7 @@ void Helpers::CharToUpperUTF8(char * c) { switch (*c) { case (char)0xC3: // grave, acute, circumflex, diaeresis, etc. - if ((p_v >= 0xA0) && (p_v <= 0xBE)) { + if ((p_v >= (char)0xA0) && (p_v <= (char)0xBE)) { *p -= 0x20; } break;