From 318252a973511fdf87af1830edd13eb801ee7c59 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Fri, 7 Oct 2016 10:37:02 -0700 Subject: [PATCH] Fix warning on PowerPC GCC 5+ will generate "error: comparison is always true due to limited range of data type" when -Wextra is used because PowerPC by default uses unsigned char, so it can never be less than 0. --- tinyxml2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index c872a54..7df8443 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -2183,7 +2183,8 @@ XMLPrinter::XMLPrinter( FILE* file, bool compact, int depth ) : } for( int i=0; i(entityValue) && entityValue < ENTITY_RANGE ); _entityFlag[ (unsigned char)entityValue ] = true; } _restrictedEntityFlag[(unsigned char)'&'] = true;