diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-13 14:49:16 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-04 08:02:28 +0200 |
commit | 1ad43f8809882b9a281a4f7c8fe232e87ea4371f (patch) | |
tree | 09fe7660152e123db46c68ace77fdd491931e152 /cpukit/libcsupport | |
parent | Remove superfluous pipe_create() (diff) | |
download | rtems-1ad43f8809882b9a281a4f7c8fe232e87ea4371f.tar.bz2 |
Avoid need for -fno-builtin for calloc()
Use RTEMS_OBFUSCATE_VARIABLE() instead.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/calloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stdlib.h> #include <string.h> +#include <rtems/score/basedefs.h> 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 ); |