diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-06 09:43:00 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-06 09:43:00 +0000 |
commit | eca76db49db04d8c05719a8d6edb3e2855c79d8d (patch) | |
tree | 8dd0abf2a3232d154699eee4a3c102d50aca0634 /src | |
parent | 8b8cf7977c8fa9ff6b2cf09bb45f9636f1cafe00 (diff) |
Fixed clang compilation warning
git-svn-id: http://pugixml.googlecode.com/svn/trunk@849 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r-- | src/pugixml.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<wchar_t>(endian_swap(static_cast<wchar_selector<sizeof(wchar_t)>::type>(data[i]))); } +#endif } namespace |