Remove static to avoid compiler warning (#836)

This commit is contained in:
Madelyn Olson 2024-07-28 13:08:09 -07:00 committed by GitHub
parent 9211aed72e
commit b4d96caa78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1267,7 +1267,7 @@ void clusterReset(int hard) {
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* CLUSTER communication link * CLUSTER communication link
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
static clusterMsgSendBlock *createClusterMsgSendBlock(int type, uint32_t msglen) { clusterMsgSendBlock *createClusterMsgSendBlock(int type, uint32_t msglen) {
uint32_t blocklen = msglen + offsetof(clusterMsgSendBlock, msg); uint32_t blocklen = msglen + offsetof(clusterMsgSendBlock, msg);
clusterMsgSendBlock *msgblock = zcalloc(blocklen); clusterMsgSendBlock *msgblock = zcalloc(blocklen);
msgblock->refcount = 1; msgblock->refcount = 1;