Fix -Wmaybe-uninitialized warnings

This commit is contained in:
Luis Díaz Más 2018-09-11 16:08:50 +02:00
parent 18ded9ccf3
commit 320e186f44
2 changed files with 2 additions and 2 deletions

View File

@ -917,7 +917,7 @@ namespace Jzon
void Parser::tokenize()
{
Token token;
Token token = T_UNKNOWN;
std::string valueBuffer;
bool saveBuffer;

View File

@ -783,7 +783,7 @@ XMPUtils::CatenateArrayItems ( const XMPMeta & xmpObj,
XMP_Assert ( (schemaNS != 0) && (arrayName != 0) ); // ! Enforced by wrapper.
XMP_Assert ( (separator != 0) && (quotes != 0) && (catedStr != 0) && (catedLen != 0) ); // ! Enforced by wrapper.
size_t strLen, strPos, charLen;
size_t strLen=0, strPos=0, charLen=0;
UniCharKind charKind;
UniCodePoint currUCP, openQuote, closeQuote;