Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2015-03-16 01:45:01 +0300
committerUlrich Germann <ugermann@inf.ed.ac.uk>2015-03-16 01:45:01 +0300
commit085c88cc7bb32b88ee2c32468ba72907f5fc2646 (patch)
treef4c85cdd4e61d5da46f502149763d32acd50bf9e /moses/Syntax
parentad805c133bb61dac3b9d1555d221db71739d90d4 (diff)
Eliminated sources of some compiler warnings (unused variables; signed/usigned comparisons).
Diffstat (limited to 'moses/Syntax')
-rw-r--r--moses/Syntax/F2S/HyperTreeLoader.cpp4
-rw-r--r--moses/Syntax/F2S/RuleMatcherHyperTree-inl.h2
-rw-r--r--moses/Syntax/T2S/RuleTrieLoader.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/moses/Syntax/F2S/HyperTreeLoader.cpp b/moses/Syntax/F2S/HyperTreeLoader.cpp
index 00c8fa3fb..0ffc3602f 100644
--- a/moses/Syntax/F2S/HyperTreeLoader.cpp
+++ b/moses/Syntax/F2S/HyperTreeLoader.cpp
@@ -44,8 +44,8 @@ bool HyperTreeLoader::Load(const std::vector<FactorType> &input,
{
PrintUserTime(std::string("Start loading HyperTree"));
- const StaticData &staticData = StaticData::Instance();
- const std::string &factorDelimiter = staticData.GetFactorDelimiter();
+ // const StaticData &staticData = StaticData::Instance();
+ // const std::string &factorDelimiter = staticData.GetFactorDelimiter();
std::size_t count = 0;
diff --git a/moses/Syntax/F2S/RuleMatcherHyperTree-inl.h b/moses/Syntax/F2S/RuleMatcherHyperTree-inl.h
index ba444350a..d7ce2cf7c 100644
--- a/moses/Syntax/F2S/RuleMatcherHyperTree-inl.h
+++ b/moses/Syntax/F2S/RuleMatcherHyperTree-inl.h
@@ -164,7 +164,7 @@ bool RuleMatcherHyperTree<Callback>::MatchChildren(
if (children.size() != subSeqSize) {
return false;
}
- for (int i = 0; i < subSeqSize; ++i) {
+ for (size_t i = 0; i < subSeqSize; ++i) {
if (edgeLabel[pos+i] != children[i]->pvertex.symbol[0]->GetId()) {
return false;
}
diff --git a/moses/Syntax/T2S/RuleTrieLoader.cpp b/moses/Syntax/T2S/RuleTrieLoader.cpp
index b22fb351a..81924f05d 100644
--- a/moses/Syntax/T2S/RuleTrieLoader.cpp
+++ b/moses/Syntax/T2S/RuleTrieLoader.cpp
@@ -43,7 +43,7 @@ bool RuleTrieLoader::Load(const std::vector<FactorType> &input,
PrintUserTime(std::string("Start loading text phrase table. Moses format"));
const StaticData &staticData = StaticData::Instance();
- const std::string &factorDelimiter = staticData.GetFactorDelimiter();
+ // const std::string &factorDelimiter = staticData.GetFactorDelimiter();
std::size_t count = 0;