From 4e4af118380a6ab4308197a97c1e4ffcbc8c05fa Mon Sep 17 00:00:00 2001 From: deal Date: Thu, 23 Dec 2021 16:05:36 +0800 Subject: [PATCH] Fix warnings on PUGIXML_WCHAR_MODE --- src/pugixml.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index cb8bfa3..7e5148a 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -4685,6 +4685,7 @@ PUGI__NS_BEGIN PUGI__FN bool set_value_ascii(String& dest, Header& header, uintptr_t header_mask, char* buf, size_t len) { #ifdef PUGIXML_WCHAR_MODE + (void)len; char_t wbuf[128]; assert(len < sizeof(wbuf) / sizeof(wbuf[0]));