HAL_ChibiOS: deprecate realloc for ChibiOS build, so as to return error when used

This commit is contained in:
bugobliterator 2020-03-17 14:18:23 +05:30 committed by Andrew Tridgell
parent decff33d6b
commit cec3da0df1
1 changed files with 2 additions and 1 deletions

View File

@ -44,9 +44,10 @@ int printf(const char *fmt, ...);
void *malloc(size_t size); void *malloc(size_t size);
void *calloc(size_t nmemb, size_t size); void *calloc(size_t nmemb, size_t size);
void free(void *ptr); void free(void *ptr);
void *realloc(void* ptr, size_t size) __attribute__((deprecated));
extern int (*vprintf_console_hook)(const char *fmt, va_list arg); extern int (*vprintf_console_hook)(const char *fmt, va_list arg);
#define L_tmpnam 32 #define L_tmpnam 32
#ifdef __cplusplus #ifdef __cplusplus