diff --git a/src/SFML/Audio/SoundFileReaderOgg.cpp b/src/SFML/Audio/SoundFileReaderOgg.cpp index 9ea735657..e102bf94f 100644 --- a/src/SFML/Audio/SoundFileReaderOgg.cpp +++ b/src/SFML/Audio/SoundFileReaderOgg.cpp @@ -69,7 +69,7 @@ long tell(void* data) return position ? static_cast(*position) : -1; } -ov_callbacks callbacks = {&read, &seek, nullptr, &tell}; +const ov_callbacks callbacks = {&read, &seek, nullptr, &tell}; } // namespace namespace sf::priv diff --git a/test/Window/Event.test.cpp b/test/Window/Event.test.cpp index 198c60c9d..4ea22af9f 100644 --- a/test/Window/Event.test.cpp +++ b/test/Window/Event.test.cpp @@ -7,7 +7,7 @@ namespace { -struct +const struct { std::string_view operator()(const sf::Event::Closed&) const {