From e558c9f2448e0f839782fc11b98c155c2b81ccd5 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 23 Feb 2024 16:48:04 +0100 Subject: [PATCH] sgml: Silence unreferenced parameter warning This parameter is needed to provide compatibility between utf16_t and utf32_t, so we may call this function from a single template for both types. Signed-off-by: Simon Rozman --- include/stdex/sgml.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/stdex/sgml.hpp b/include/stdex/sgml.hpp index 38db9daf1..b6aad55d4 100644 --- a/include/stdex/sgml.hpp +++ b/include/stdex/sgml.hpp @@ -532,6 +532,7 @@ namespace stdex inline utf32_t wstr_to_utf32(_In_reads_(end) const utf32_t* src, _Inout_ size_t& i, _In_ size_t end) { + _Unreferenced_(end); _Assume_(i < end); return src[i++]; }