From 00dd2fdcd8860d334ff14e1618bc1d7fecfbd9c7 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Mon, 29 Aug 2016 19:14:01 +0200 Subject: [PATCH] sys: newlib: conditionally ignore wchar warning For certain versions of newlib this warning is ignored. --- sys/newlib/Makefile.include | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/newlib/Makefile.include b/sys/newlib/Makefile.include index d9c9617c2a..c4b59f757a 100644 --- a/sys/newlib/Makefile.include +++ b/sys/newlib/Makefile.include @@ -6,6 +6,7 @@ ifneq (,$(filter newlib_nano,$(USEMODULE))) USE_NEWLIB_NANO = 1 ifeq ($(shell echo "int main(){} void _exit(int n) {(void)n;while(1);}" | LC_ALL=C $(CC) -xc - -o /dev/null -lc -specs=nano.specs -Wall -Wextra -pedantic 2>&1 | grep -q "use of wchar_t values across objects may fail" ; echo $$?),0) CFLAGS += -fshort-wchar + LINKFLAGS += -Wl,--no-wchar-size-warning endif endif endif