diff options
author | Torbjorn SVENSSON via Newlib <newlib@sourceware.org> | 2021-09-03 18:54:10 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2021-09-06 21:29:39 +0300 |
commit | 522cdab5416071545d29d79b58d1e6828f30e4a0 (patch) | |
tree | 09cc75da73cc3d0a86a5951b994d4c2227e89b6b /newlib | |
parent | 3d322ac930ca6d2516680fc78e3d3018cc737483 (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.c | 1 |
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 |