From e85f691767a529ef8042f72e8a7c2824e17cb34a Mon Sep 17 00:00:00 2001 From: Zephyron Date: Sun, 25 May 2025 19:33:54 +1000 Subject: [PATCH] nsd: Suppress unused variable warnings Mark ResultNotImplemented and ResultNsdNotInitialized with [[maybe_unused]] to avoid compiler warnings. Signed-off-by: Zephyron --- src/core/hle/service/sockets/nsd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/sockets/nsd.cpp b/src/core/hle/service/sockets/nsd.cpp index dbe042ac1..04eb351bb 100644 --- a/src/core/hle/service/sockets/nsd.cpp +++ b/src/core/hle/service/sockets/nsd.cpp @@ -9,8 +9,8 @@ namespace Service::Sockets { -constexpr Result ResultNotImplemented{ErrorModule::NSD, 1}; // Generic "not implemented" -constexpr Result ResultNsdNotInitialized{ErrorModule::NSD, 2}; // Example, if needed +[[maybe_unused]] constexpr Result ResultNotImplemented{ErrorModule::NSD, 1}; // Generic "not implemented" +[[maybe_unused]] constexpr Result ResultNsdNotInitialized{ErrorModule::NSD, 2}; // Example, if needed constexpr Result ResultPermissionDenied{ErrorModule::NSD, 3}; // For nsd:a specific calls constexpr Result ResultOverflow{ErrorModule::NSD, 6};