From 714e88bb7a978c7525400806985a2a6b57bad08c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 3 Sep 2019 00:27:26 -0400 Subject: [PATCH] Socket: Add missing noexcept specifier to LastWSAError() This is used within a noexcept function, so it needs the noexcept specifier. --- lib/Socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Socket.cpp b/lib/Socket.cpp index 70263dc..8ea8f1f 100644 --- a/lib/Socket.cpp +++ b/lib/Socket.cpp @@ -108,7 +108,7 @@ void Socket::setRemoteSocket(int remSocket) noexcept { } #ifdef _WIN32 -Socket::EResult Socket::LastWSAError() { +Socket::EResult Socket::LastWSAError() noexcept { switch (WSAGetLastError()) { case WSAEWOULDBLOCK: case WSAEALREADY: