Skip to content

Commit

Permalink
Fix GCC 13 warning in StableVector
Browse files Browse the repository at this point in the history
  • Loading branch information
mikke89 committed Apr 6, 2024
1 parent 4b0815f commit 43955b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Include/RmlUi/Core/StableVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ class StableVector {
void reserve(size_t reserve_size)
{
elements.reserve(reserve_size);

#if !defined(__GNUC__) || defined(__llvm__) || (__GNUC__ < 13)
// Skipped on GCC 13.1+, as this emits a curious warning in some situations.
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110498
free_slots.reserve(reserve_size);
#endif
}

void clear()
Expand Down

0 comments on commit 43955b7

Please sign in to comment.