From 470ef4d63e4a962950647da24d114b3889eefb1f Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 11 May 2024 15:07:19 +0800 Subject: [PATCH] Fix GCC 14 -Wtemplate-id-cdtor warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: RĂ©mi Verschelde (cherry picked from commit a5c8106f92aec1eb0f07067181a37e15dd500087) --- core/ring_buffer.h | 4 ++-- core/safe_refcount.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/ring_buffer.h b/core/ring_buffer.h index a0e7491419f..414c217c5bc 100644 --- a/core/ring_buffer.h +++ b/core/ring_buffer.h @@ -211,12 +211,12 @@ public: size_mask = mask; }; - RingBuffer(int p_power = 0) { + RingBuffer(int p_power = 0) { read_pos = 0; write_pos = 0; resize(p_power); }; - ~RingBuffer(){}; + ~RingBuffer(){}; }; #endif // RING_BUFFER_H diff --git a/core/safe_refcount.h b/core/safe_refcount.h index 818e10c1f49..bcefc5d156d 100644 --- a/core/safe_refcount.h +++ b/core/safe_refcount.h @@ -131,7 +131,7 @@ public: } } - _ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast(0)) { + _ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast(0)) { set(p_value); } }; @@ -257,7 +257,7 @@ public: } } - _ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast(0)) : + _ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast(0)) : value(p_value) { } };