Fix uninitialized variable warning
This commit is contained in:
parent
21d62f0a96
commit
360d86da80
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ template<> struct reflector<ENUM> { \
|
||||||
} \
|
} \
|
||||||
static ENUM from_string( const char* s ) { \
|
static ENUM from_string( const char* s ) { \
|
||||||
BOOST_PP_SEQ_FOR_EACH( FC_REFLECT_ENUM_FROM_STRING, ENUM, FIELDS ) \
|
BOOST_PP_SEQ_FOR_EACH( FC_REFLECT_ENUM_FROM_STRING, ENUM, FIELDS ) \
|
||||||
int64_t i; \
|
int64_t i = 0; \
|
||||||
try \
|
try \
|
||||||
{ \
|
{ \
|
||||||
i = boost::lexical_cast<int64_t>(s); \
|
i = boost::lexical_cast<int64_t>(s); \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue