X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07cc7ddca5bcb5a056321bad9eaec6eab7b9ad7b..8ce0312ea0f0c1981571cc4fff7c063e30d32d3f:/src/html/htmltag.cpp diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index 0b0b894f5b..656ec5efce 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -8,7 +8,7 @@ ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "htmltag.h" #endif @@ -131,7 +131,9 @@ wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source) // see if it matches int match_pos = 0; while (pos < lng && match_pos < tag_len && src[pos] != '>' && src[pos] != '<') { - if (wxToupper(src[pos]) == tagBuffer[match_pos]) { + // cast to wxChar needed to suppress warning in + // Unicode build + if ((wxChar)wxToupper(src[pos]) == tagBuffer[match_pos]) { ++match_pos; } else if (src[pos] == wxT(' ') || src[pos] == wxT('\n') ||