Merge pull request #387 from Kvalme/master
Fix gcc warnings. (initialization order)pull/1153/head^2
commit
f7f906ec70
|
@ -55,14 +55,15 @@ namespace FBX {
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
Token::Token(const char* sbegin, const char* send, TokenType type, unsigned int offset)
|
Token::Token(const char* sbegin, const char* send, TokenType type, unsigned int offset)
|
||||||
: sbegin(sbegin)
|
:
|
||||||
|
#ifdef DEBUG
|
||||||
|
contents(sbegin, static_cast<size_t>(send-sbegin)),
|
||||||
|
#endif
|
||||||
|
sbegin(sbegin)
|
||||||
, send(send)
|
, send(send)
|
||||||
, type(type)
|
, type(type)
|
||||||
, line(offset)
|
, line(offset)
|
||||||
, column(BINARY_MARKER)
|
, column(BINARY_MARKER)
|
||||||
#ifdef DEBUG
|
|
||||||
, contents(sbegin, static_cast<size_t>(send-sbegin))
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
ai_assert(sbegin);
|
ai_assert(sbegin);
|
||||||
ai_assert(send);
|
ai_assert(send);
|
||||||
|
@ -395,4 +396,4 @@ void TokenizeBinary(TokenList& output_tokens, const char* input, unsigned int le
|
||||||
} // !FBX
|
} // !FBX
|
||||||
} // !Assimp
|
} // !Assimp
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -58,14 +58,15 @@ namespace FBX {
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
Token::Token(const char* sbegin, const char* send, TokenType type, unsigned int line, unsigned int column)
|
Token::Token(const char* sbegin, const char* send, TokenType type, unsigned int line, unsigned int column)
|
||||||
: sbegin(sbegin)
|
:
|
||||||
|
#ifdef DEBUG
|
||||||
|
contents(sbegin, static_cast<size_t>(send-sbegin)),
|
||||||
|
#endif
|
||||||
|
sbegin(sbegin)
|
||||||
, send(send)
|
, send(send)
|
||||||
, type(type)
|
, type(type)
|
||||||
, line(line)
|
, line(line)
|
||||||
, column(column)
|
, column(column)
|
||||||
#ifdef DEBUG
|
|
||||||
, contents(sbegin, static_cast<size_t>(send-sbegin))
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
ai_assert(sbegin);
|
ai_assert(sbegin);
|
||||||
ai_assert(send);
|
ai_assert(send);
|
||||||
|
|
Loading…
Reference in New Issue