Skip to content

Commit a68d8ce

Browse files
Make heap an undefined extend array
Instead of a bogus size, use an indefinite size for the heap to avoid GCC warnings
1 parent 3065a3f commit a68d8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/umm_malloc/umm_malloc_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void* realloc_loc (void* p, size_t s, const char* file, int line);
9191
#define UMM_BEST_FIT
9292

9393
/* Start addresses and the size of the heap */
94-
extern char _heap_start[1024];
94+
extern char _heap_start[];
9595
#define UMM_MALLOC_CFG__HEAP_ADDR ((uint32_t)&_heap_start)
9696
#define UMM_MALLOC_CFG__HEAP_SIZE ((size_t)(0x3fffc000 - UMM_MALLOC_CFG__HEAP_ADDR))
9797

0 commit comments

Comments
 (0)