This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Warnings in libgcc/emutls.c
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 14 Jan 2015 17:15:23 -0600
- Subject: Warnings in libgcc/emutls.c
- Authentication-results: sourceware.org; auth=none
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.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985