mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 13:31:32 +00:00
use the function deprecated attribute if compiling with GCC to get warnings for malloc/free usages. We always want to use our zmalloc/zfree versions for memory usage tracking
This commit is contained in:
@ -885,4 +885,12 @@ void publishCommand(redisClient *c);
|
||||
void watchCommand(redisClient *c);
|
||||
void unwatchCommand(redisClient *c);
|
||||
|
||||
#if defined(__GNUC__)
|
||||
void *malloc(size_t size) __attribute__ ((deprecated));
|
||||
void *calloc(size_t count, size_t size) __attribute__ ((deprecated));
|
||||
void free(void *ptr) __attribute__ ((deprecated));
|
||||
void *malloc(size_t size) __attribute__ ((deprecated));
|
||||
void *realloc(void *ptr, size_t size) __attribute__ ((deprecated));
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user