Skip to content

Commit

Permalink
HAL_ChibiOS: deprecate realloc for ChibiOS build, so as to return err…
Browse files Browse the repository at this point in the history
…or when used
  • Loading branch information
bugobliterator committed Mar 17, 2020
1 parent 93d65ef commit 7b5aef7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ int printf(const char *fmt, ...);
void *malloc(size_t size);
void *calloc(size_t nmemb, size_t size);
void free(void *ptr);

void *realloc(void* ptr, size_t size) __attribute__((deprecated));
extern int (*vprintf_console_hook)(const char *fmt, va_list arg);


#define L_tmpnam 32

#ifdef __cplusplus
Expand Down

0 comments on commit 7b5aef7

Please sign in to comment.