mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Merge pull request #13 from tetsuok/fix-warnings
Fix warnings: -Wreorder and -Wmismatched-tags.
This commit is contained in:
commit
9e626369f7
@ -38,10 +38,10 @@ size_t PhraseNode::GetNodeSize(size_t numChildren, size_t wordSize, size_t count
|
||||
}
|
||||
|
||||
PhraseNode::PhraseNode()
|
||||
:m_currChild(NULL)
|
||||
: m_value(0)
|
||||
,m_currChild(NULL)
|
||||
,m_saved(false)
|
||||
,m_memLoad(NULL)
|
||||
,m_value(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -27,8 +27,8 @@
|
||||
namespace Moses
|
||||
{
|
||||
|
||||
class ApplicableRuleTrie;
|
||||
class VarSpanNode;
|
||||
struct ApplicableRuleTrie;
|
||||
struct VarSpanNode;
|
||||
|
||||
class VarSpanTrieBuilder
|
||||
{
|
||||
|
@ -51,10 +51,11 @@ protected:
|
||||
float m_transScore;
|
||||
float m_fullScore;
|
||||
ScoreComponentCollection m_scoreBreakdown;
|
||||
const AlignmentInfo *m_alignmentInfo;
|
||||
|
||||
// in case of confusion net, ptr to source phrase
|
||||
Phrase const* m_sourcePhrase;
|
||||
|
||||
const AlignmentInfo *m_alignmentInfo;
|
||||
Word m_lhsTarget;
|
||||
|
||||
public:
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
namespace moses {
|
||||
|
||||
class Options;
|
||||
struct Options;
|
||||
|
||||
// Tool for converting a rule table into a more compact format.
|
||||
class Compactify : public Tool {
|
||||
|
@ -30,7 +30,7 @@ namespace Moses {
|
||||
namespace GHKM {
|
||||
|
||||
class Node;
|
||||
class Options;
|
||||
struct Options;
|
||||
|
||||
class ComposedRule
|
||||
{
|
||||
@ -60,8 +60,8 @@ class ComposedRule
|
||||
std::vector<const Subgraph *> m_attachedRules;
|
||||
std::queue<const Node *> m_openAttachmentPoints;
|
||||
int m_depth;
|
||||
int m_nodeCount;
|
||||
int m_size;
|
||||
int m_nodeCount;
|
||||
};
|
||||
|
||||
} // namespace GHKM
|
||||
|
@ -30,7 +30,7 @@
|
||||
namespace Moses {
|
||||
namespace GHKM {
|
||||
|
||||
class Options;
|
||||
struct Options;
|
||||
class ParseTree;
|
||||
|
||||
class ExtractGHKM
|
||||
|
@ -26,9 +26,9 @@
|
||||
namespace Moses {
|
||||
namespace GHKM {
|
||||
|
||||
class Options;
|
||||
struct Options;
|
||||
class ScfgRule;
|
||||
class Symbol;
|
||||
struct Symbol;
|
||||
|
||||
class ScfgRuleWriter
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user