summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2freeze/Main.cpp4
-rw-r--r--cpp/src/slice2freezej/Main.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp
index 1ecea2fb397..4bf091353ab 100644
--- a/cpp/src/slice2freeze/Main.cpp
+++ b/cpp/src/slice2freeze/Main.cpp
@@ -1003,7 +1003,7 @@ writeDict(const string& n, UnitPtr& u, const Dict& dict, Output& H, Output& C, c
return false;
}
- bool containsSequence;
+ bool containsSequence = false;
if(!Dictionary::legalKeyType(valueType, containsSequence))
{
cerr << n << ": `" << dict.value << "' is not a valid index type" << endl;
@@ -1076,7 +1076,7 @@ writeDict(const string& n, UnitPtr& u, const Dict& dict, Output& H, Output& C, c
TypePtr dataMemberType = dataMember->type();
- bool containsSequence;
+ bool containsSequence = false;
if(!Dictionary::legalKeyType(dataMemberType, containsSequence))
{
cerr << n << ": `" << index.member << "' cannot be used as an index" << endl;
diff --git a/cpp/src/slice2freezej/Main.cpp b/cpp/src/slice2freezej/Main.cpp
index e2b312d37ad..f8c51ab112b 100644
--- a/cpp/src/slice2freezej/Main.cpp
+++ b/cpp/src/slice2freezej/Main.cpp
@@ -254,7 +254,7 @@ FreezeGenerator::generate(UnitPtr& u, const Dict& dict)
return false;
}
- bool containsSequence;
+ bool containsSequence = false;
if(!Dictionary::legalKeyType(valueType, containsSequence))
{
cerr << _prog << ": `" << dict.value << "' is not a valid index type" << endl;
@@ -325,7 +325,7 @@ FreezeGenerator::generate(UnitPtr& u, const Dict& dict)
TypePtr dataMemberType = dataMember->type();
- bool containsSequence;
+ bool containsSequence = false;
if(!Dictionary::legalKeyType(dataMemberType, containsSequence))
{
cerr << _prog << ": `" << index.member << "' cannot be used as an index" << endl;