diff --git a/include/SFML/Network/IpAddress.hpp b/include/SFML/Network/IpAddress.hpp index 385174551..a8a9203ca 100644 --- a/include/SFML/Network/IpAddress.hpp +++ b/include/SFML/Network/IpAddress.hpp @@ -56,7 +56,7 @@ public: /// \param address IP address or network name /// //////////////////////////////////////////////////////////// - static std::optional resolve(std::string_view address); + [[nodiscard]] static std::optional resolve(std::string_view address); //////////////////////////////////////////////////////////// /// \brief Construct the address from 4 bytes