diff --git a/src/server.h b/src/server.h index e1db21e47..487600d34 100644 --- a/src/server.h +++ b/src/server.h @@ -2466,7 +2466,7 @@ struct redisMaster *MasterInfoFromClient(client *c); uint64_t getMvccTstamp(); void incrementMvccTstamp(); -#if defined(__GNUC__) && !defined(NO_DEPRECATE_FREE) +#if __GNUC__ >= 7 && !defined(NO_DEPRECATE_FREE) [[deprecated]] void *calloc(size_t count, size_t size); [[deprecated]]