Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorTorbjorn SVENSSON via Newlib <newlib@sourceware.org>2021-09-03 18:54:10 +0300
committerCorinna Vinschen <corinna@vinschen.de>2021-09-06 21:29:39 +0300
commit522cdab5416071545d29d79b58d1e6828f30e4a0 (patch)
tree09cc75da73cc3d0a86a5951b994d4c2227e89b6b /newlib
parent3d322ac930ca6d2516680fc78e3d3018cc737483 (diff)
nano-malloc: Fix redefined compilation warning
When newlib is configured with --enable-newlib-reent-check-verify, the assert macro is already defined in the nano-mallocr.c compile unit. Contributed by STMicroelectronics Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/stdlib/nano-mallocr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/nano-mallocr.c b/newlib/libc/stdlib/nano-mallocr.c
index 18a16c924..6fb08a616 100644
--- a/newlib/libc/stdlib/nano-mallocr.c
+++ b/newlib/libc/stdlib/nano-mallocr.c
@@ -40,6 +40,7 @@
#if DEBUG
#include <assert.h>
#else
+#undef assert
#define assert(x) ((void)0)
#endif