From 87aba27955a2408a3be14eee12e0b7d35885d9d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Fri, 20 Jul 2018 09:05:06 +0200 Subject: [PATCH] Revert "newlib.mk: add optional sanity check for newlib-nano header" This reverts commit 0e14df5406202107ad8d9bfe4541f64a888d0151. --- makefiles/libc/assert_newlib_nano_included.h | 5 ----- makefiles/libc/newlib.mk | 5 ----- 2 files changed, 10 deletions(-) delete mode 100644 makefiles/libc/assert_newlib_nano_included.h diff --git a/makefiles/libc/assert_newlib_nano_included.h b/makefiles/libc/assert_newlib_nano_included.h deleted file mode 100644 index 26b6daa1ce86..000000000000 --- a/makefiles/libc/assert_newlib_nano_included.h +++ /dev/null @@ -1,5 +0,0 @@ -/* Warn if newlib_nano is requested but not actually used */ -#include -#ifndef _NANO_FORMATTED_IO -#warning newlib-nano requested but not included by the build system -#endif diff --git a/makefiles/libc/newlib.mk b/makefiles/libc/newlib.mk index 6f65bdaa878c..89a515e3cbca 100644 --- a/makefiles/libc/newlib.mk +++ b/makefiles/libc/newlib.mk @@ -101,9 +101,4 @@ ifeq (1,$(USE_NEWLIB_NANO)) # newlib-nano overrides newlib.h and its include dir should therefore go before # the regular system include dirs. INCLUDES := $(addprefix -isystem ,$(NEWLIB_NANO_INCLUDE_DIR)) $(INCLUDES) - - ifneq (,$(filter 1, $(ASSERT_NEWLIB_NANO_HEADER))) - # Add a check to assert newlib-nano is used - INCLUDES += -include '$(RIOTMAKE)/libc/assert_newlib_nano_included.h' - endif endif