From ace153ad6123359fd0f14e7b99e6fa4c0c6eb607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 26 Apr 2024 11:40:59 +0200 Subject: [PATCH] Fix GCC 14 -Wtemplate-id-cdtor warnings Fixes #91206. (cherry picked from commit a8ff47b6d6b5070b8247dfed85135b71a4a07cdf) --- core/ring_buffer.h | 4 ++-- core/safe_refcount.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/ring_buffer.h b/core/ring_buffer.h index 8a282e0dc7b..f5256eb8ff6 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 diff --git a/core/safe_refcount.h b/core/safe_refcount.h index 593c2d86e04..a039715b679 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); } };