Hack to prevent build errors on some machines due to missing throw()

Former-commit-id: a9e525c81e62f99e083fdddc5c62d11e5e46a5f4
This commit is contained in:
John Sully 2019-03-15 05:28:20 +00:00
parent ed83e6b326
commit f485f390d5

View File

@ -2330,11 +2330,13 @@ void lolwutCommand(client *c);
void aclCommand(client *c); void aclCommand(client *c);
#if defined(__GNUC__) #if defined(__GNUC__)
#ifndef __cplusplus
void *calloc(size_t count, size_t size) __attribute__ ((deprecated)); void *calloc(size_t count, size_t size) __attribute__ ((deprecated));
void free(void *ptr) __attribute__ ((deprecated)); void free(void *ptr) __attribute__ ((deprecated));
void *malloc(size_t size) __attribute__ ((deprecated)); void *malloc(size_t size) __attribute__ ((deprecated));
void *realloc(void *ptr, size_t size) __attribute__ ((deprecated)); void *realloc(void *ptr, size_t size) __attribute__ ((deprecated));
#endif #endif
#endif
/* Debugging stuff */ /* Debugging stuff */
void _serverAssertWithInfo(const client *c, const robj *o, const char *estr, const char *file, int line); void _serverAssertWithInfo(const client *c, const robj *o, const char *estr, const char *file, int line);