Skip to content

Commit

Permalink
libc: newlib: Fix declare a type conflict
Browse files Browse the repository at this point in the history
Fix a variable declaration type conflict:

libc-hooks.c:92:16: error: conflicting types for '_heap_sentry'
   92 |   extern void *_heap_sentry;
soc.h:78:13: note: previous declaration of '_heap_sentry' was here

Fixes zephyrproject-rtos#44926

Signed-off-by: Flavio Ceolin <[email protected]>
  • Loading branch information
Flavio Ceolin committed Apr 18, 2022
1 parent 13f3822 commit b7e0354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libc/newlib/libc-hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
/* End of the malloc arena is the end of physical memory */
#if defined(CONFIG_XTENSA)
/* TODO: Why is xtensa a special case? */
extern void *_heap_sentry;
extern char _heap_sentry[];
#define MAX_HEAP_SIZE (POINTER_TO_UINT(&_heap_sentry) - \
HEAP_BASE)
#else
Expand Down

0 comments on commit b7e0354

Please sign in to comment.