From 320e186f448aec8e2fb07d828a49a55b322ee56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Tue, 11 Sep 2018 16:08:50 +0200 Subject: [PATCH] Fix -Wmaybe-uninitialized warnings --- samples/Jzon.cpp | 2 +- xmpsdk/src/XMPUtils-FileInfo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Jzon.cpp b/samples/Jzon.cpp index 4435f699..7ad12fc3 100644 --- a/samples/Jzon.cpp +++ b/samples/Jzon.cpp @@ -917,7 +917,7 @@ namespace Jzon void Parser::tokenize() { - Token token; + Token token = T_UNKNOWN; std::string valueBuffer; bool saveBuffer; diff --git a/xmpsdk/src/XMPUtils-FileInfo.cpp b/xmpsdk/src/XMPUtils-FileInfo.cpp index 6f76cdc3..f0f54ba3 100644 --- a/xmpsdk/src/XMPUtils-FileInfo.cpp +++ b/xmpsdk/src/XMPUtils-FileInfo.cpp @@ -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;