Skip to content

Commit

Permalink
Fix GCC 14 -Wtemplate-id-cdtor warnings
Browse files Browse the repository at this point in the history
Fixes godotengine#91206.

(cherry picked from commit a8ff47b)
  • Loading branch information
akien-mga committed Apr 26, 2024
1 parent 7d9c352 commit dc3a97a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/templates/ring_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ class RingBuffer {
size_mask = mask;
}

RingBuffer<T>(int p_power = 0) {
RingBuffer(int p_power = 0) {
resize(p_power);
}
~RingBuffer<T>() {}
~RingBuffer() {}
};

#endif // RING_BUFFER_H
2 changes: 1 addition & 1 deletion core/templates/safe_refcount.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class SafeNumeric {
}
}

_ALWAYS_INLINE_ explicit SafeNumeric<T>(T p_value = static_cast<T>(0)) {
_ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast<T>(0)) {
set(p_value);
}
};
Expand Down

0 comments on commit dc3a97a

Please sign in to comment.