From 3e4bf8cd6c34fcd62949d5032209b1afa093c733 Mon Sep 17 00:00:00 2001 From: XMRig Date: Mon, 17 Aug 2020 06:08:14 +0700 Subject: [PATCH] Fix compile warning --- src/crypto/randomx/intrin_portable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/randomx/intrin_portable.h b/src/crypto/randomx/intrin_portable.h index 1dcd3ad37..df98a5432 100644 --- a/src/crypto/randomx/intrin_portable.h +++ b/src/crypto/randomx/intrin_portable.h @@ -414,7 +414,7 @@ FORCE_INLINE void rx_store_vec_f128(double* mem_addr, rx_vec_f128 val) { } FORCE_INLINE rx_vec_f128 rx_swap_vec_f128(rx_vec_f128 a) { - float64x2_t temp; + float64x2_t temp{}; temp = vcopyq_laneq_f64(temp, 1, a, 1); a = vcopyq_laneq_f64(a, 1, a, 0); return vcopyq_laneq_f64(a, 0, temp, 1); @@ -505,7 +505,7 @@ FORCE_INLINE void rx_store_vec_i128(rx_vec_i128* mem_addr, rx_vec_i128 val) { FORCE_INLINE rx_vec_f128 rx_cvt_packed_int_vec_f128(const void* addr) { double lo = unsigned32ToSigned2sCompl(load32((uint8_t*)addr + 0)); double hi = unsigned32ToSigned2sCompl(load32((uint8_t*)addr + 4)); - rx_vec_f128 x; + rx_vec_f128 x{}; x = vsetq_lane_f64(lo, x, 0); x = vsetq_lane_f64(hi, x, 1); return x;