From 1ad43f8809882b9a281a4f7c8fe232e87ea4371f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 13 Sep 2018 14:49:16 +0200 Subject: Avoid need for -fno-builtin for calloc() Use RTEMS_OBFUSCATE_VARIABLE() instead. --- cpukit/libcsupport/src/calloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/src/calloc.c b/cpukit/libcsupport/src/calloc.c index 915ece3e17..20db533786 100644 --- a/cpukit/libcsupport/src/calloc.c +++ b/cpukit/libcsupport/src/calloc.c @@ -21,6 +21,7 @@ #if defined(RTEMS_NEWLIB) && !defined(HAVE_CALLOC) #include #include +#include void *calloc( size_t nelem, @@ -32,6 +33,7 @@ void *calloc( length = nelem * elsize; cptr = malloc( length ); + RTEMS_OBFUSCATE_VARIABLE( cptr ); if ( cptr ) memset( cptr, '\0', length ); -- cgit v1.2.3