Hi

I noticed the arm-rtems (and I assume arm-eabi) have these warnings
about calloc() and realloc(). Can this file include stdlib.h to resolve
this?

../../../gcc/libgcc/emutls.c: In function '__emutls_get_address':
../../../gcc/libgcc/emutls.c:159:13: warning: implicit declaration of
function 'calloc' [-Wimplicit-function-declaration]
       arr = calloc (size + 1, sizeof (void *));
             ^
../../../gcc/libgcc/emutls.c:159:13: warning: incompatible implicit
declaration of built-in function 'calloc'
../../../gcc/libgcc/emutls.c:159:13: note: include '<stdlib.h>' or
provide a declaration of 'calloc'
../../../gcc/libgcc/emutls.c:171:13: warning: implicit declaration of
function 'realloc' [-Wimplicit-function-declaration]
       arr = realloc (arr, (size + 1) * sizeof (void *));
             ^
../../../gcc/libgcc/emutls.c:171:13: warning: incompatible implicit
declaration of built-in function 'realloc'
../../../gcc/libgcc/emutls.c:171:13: note: include '<stdlib.h>' or
provide a declaration of 'realloc'

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherr...@oarcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

Reply via email to