← Back to team overview

maria-developers team mailing list archive

MDEV-8721 AIX: Compile error xtradb:log0log.cc

 

Hi Jan,

Can you please review a patch for:

MDEV-8721 AIX: Compile error xtradb:log0log.cc

which seems to be the same bug with:
MDEV-8516 AIX xtradb -> log -> log0log.cc.o


Note, I don't have an AIX 7 machine.
Just applying the fix suggested by the complainer.
The fix looks fine for me.

Thanks.
diff --git a/storage/xtradb/log/log0log.cc b/storage/xtradb/log/log0log.cc
index 5a05070..327bbc2 100644
--- a/storage/xtradb/log/log0log.cc
+++ b/storage/xtradb/log/log0log.cc
@@ -256,7 +256,7 @@ log_buffer_extend(
 {
 	ulint	move_start;
 	ulint	move_end;
-	byte*	tmp_buf = static_cast<byte *>(alloca(OS_FILE_LOG_BLOCK_SIZE));
+	byte*	tmp_buf = reinterpret_cast<byte *>(alloca(OS_FILE_LOG_BLOCK_SIZE));
 
 	mutex_enter(&(log_sys->mutex));
 
diff --git a/storage/xtradb/log/log0recv.cc b/storage/xtradb/log/log0recv.cc
index 221a667..7d12c2f 100644
--- a/storage/xtradb/log/log0recv.cc
+++ b/storage/xtradb/log/log0recv.cc
@@ -3097,7 +3097,7 @@ recv_recovery_from_checkpoint_start_func(
 #endif /* UNIV_LOG_ARCHIVE */
 	byte*		buf;
 	byte*		log_hdr_buf;
-	byte*		log_hdr_buf_base = static_cast<byte *>
+	byte*		log_hdr_buf_base = reinterpret_cast<byte *>
 		(alloca(LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE));
 	dberr_t		err;
 	ut_when_dtor<recv_dblwr_t> tmp(recv_sys->dblwr);