From 72c21feff6e53e273fde99862baf086137cc98e7 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Wed, 24 Apr 2019 08:44:36 -0700 Subject: [PATCH] Make chars unsigned by default, matching ESP8266 (#6013) Force GCC to run with -funsigned-char during host tests to make the PC match the default behaviour used by the xtensa GCC port. As noted in #6010. Thanks @MichaelBrunn3r --- tests/host/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/host/Makefile b/tests/host/Makefile index df5393f07..1602eed79 100644 --- a/tests/host/Makefile +++ b/tests/host/Makefile @@ -145,8 +145,8 @@ FLAGS += -DLWIP_IPV6=0 FLAGS += -DHOST_MOCK=1 FLAGS += -DNONOSDK221=1 FLAGS += $(MKFLAGS) -CXXFLAGS += -std=c++11 -fno-rtti $(FLAGS) -CFLAGS += -std=c99 $(FLAGS) +CXXFLAGS += -std=c++11 -fno-rtti $(FLAGS) -funsigned-char +CFLAGS += -std=c99 $(FLAGS) -funsigned-char LDFLAGS += -coverage $(OPTZ) -g $(M32) VALGRINDFLAGS += --leak-check=full --track-origins=yes --error-limit=no --show-leak-kinds=all --error-exitcode=999 CXXFLAGS += -Wno-error=format-security # cores/esp8266/Print.cpp:42:24: error: format not a string literal and no format arguments [-Werror=format-security] -- (os_printf_plus(not_the_best_way))