explicit cast for fast_mblock_alloc_object

use_iouring
YuQing 2024-12-08 09:29:16 +08:00
parent a3e1956128
commit 03974ff302
2 changed files with 4 additions and 1 deletions

View File

@ -132,6 +132,7 @@ fi
cd ..
cp Makefile.in Makefile
sed_replace "s#\\\$(CC)#gcc#g" Makefile
sed_replace "s#\\\$(CFLAGS)#$CFLAGS#g" Makefile
sed_replace "s#\\\$(LIBS)#$LIBS#g" Makefile
sed_replace "s#\\\$(TARGET_PREFIX)#$TARGET_PREFIX#g" Makefile

View File

@ -276,7 +276,9 @@ static inline SFBinlogWriterBuffer *sf_binlog_writer_alloc_buffer(
{
SFBinlogWriterBuffer *buffer;
if ((buffer=fast_mblock_alloc_object(&thread->mblock)) != NULL) {
if ((buffer=(SFBinlogWriterBuffer *)fast_mblock_alloc_object(
&thread->mblock)) != NULL)
{
buffer->type = SF_BINLOG_BUFFER_TYPE_WRITE_TO_FILE;
}
return buffer;