diff --git a/src/SFML/Graphics/GLCheck.hpp b/src/SFML/Graphics/GLCheck.hpp index ef11943c8..c3d99dadf 100644 --- a/src/SFML/Graphics/GLCheck.hpp +++ b/src/SFML/Graphics/GLCheck.hpp @@ -80,7 +80,7 @@ bool glCheckError(const std::filesystem::path& file, unsigned int line, std::str while (!sf::priv::glCheckError(__FILE__, static_cast(__LINE__), #__VA_ARGS__)) \ /* no-op */; \ } \ - }([&]() { return __VA_ARGS__; }) + }([&] { return __VA_ARGS__; }) #else // Else, we don't add any overhead diff --git a/src/SFML/Window/EGLCheck.hpp b/src/SFML/Window/EGLCheck.hpp index 4ca6247cb..3d0bb030b 100644 --- a/src/SFML/Window/EGLCheck.hpp +++ b/src/SFML/Window/EGLCheck.hpp @@ -81,7 +81,7 @@ bool eglCheckError(const std::filesystem::path& file, unsigned int line, std::st while (!sf::priv::eglCheckError(__FILE__, static_cast(__LINE__), #__VA_ARGS__)) \ /* no-op */; \ } \ - }([&]() { return __VA_ARGS__; }) + }([&] { return __VA_ARGS__; }) #else