From 5c9d7164091530259c0f9dc7e662b06029fdbd56 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 3 Feb 2022 12:58:52 +0100 Subject: [PATCH] Silence dead-code warnings This is library to be used by other projects and we cannot/do not want to know in advance which functions will be used and which not. Signed-off-by: Simon Rozman --- include/WinStd/Win.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/WinStd/Win.h b/include/WinStd/Win.h index 767e9cb8..552f6c74 100644 --- a/include/WinStd/Win.h +++ b/include/WinStd/Win.h @@ -1537,6 +1537,7 @@ inline VOID GuidToStringW(_In_ LPCGUID lpGuid, _Out_ std::basic_string<_Elem, _T } +#pragma warning(suppress: 4505) _Success_(return) static BOOL StringToGuidA(_In_z_ LPCSTR lpszGuid, _Out_ LPGUID lpGuid, _Out_opt_ LPCSTR *lpszGuidEnd) noexcept { GUID g; @@ -1600,6 +1601,7 @@ _Success_(return) static BOOL StringToGuidA(_In_z_ LPCSTR lpszGuid, _Out_ LPGUID } +#pragma warning(suppress: 4505) _Success_(return) static BOOL StringToGuidW(_In_z_ LPCWSTR lpszGuid, _Out_ LPGUID lpGuid, _Out_opt_ LPCWSTR *lpszGuidEnd) noexcept { GUID g;