From eca76db49db04d8c05719a8d6edb3e2855c79d8d Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Tue, 6 Mar 2012 09:43:00 +0000 Subject: Fixed clang compilation warning git-svn-id: http://pugixml.googlecode.com/svn/trunk@849 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index bc76b0b..9af6fa4 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -966,10 +966,12 @@ namespace for (size_t i = 0; i < length; ++i) result[i] = endian_swap(data[i]); } +#ifdef PUGIXML_WCHAR_MODE inline void convert_wchar_endian_swap(wchar_t* result, const wchar_t* data, size_t length) { for (size_t i = 0; i < length; ++i) result[i] = static_cast(endian_swap(static_cast::type>(data[i]))); } +#endif } namespace -- cgit v1.2.3