Fixed compilation warning on gcc3.4 (should work ok on gcc4, working around it anyway)

git-svn-id: http://pugixml.googlecode.com/svn/trunk@192 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2009-10-29 07:18:09 +00:00
parent fc602fd375
commit 15a69d3510

View file

@ -3283,11 +3283,13 @@ namespace pugi
if (m_lexer.current() == lex_slash)
{
// Save state for next lexeme - that is, whatever follows '/'
const char* state = m_lexer.state();
const char* state = 0; // gcc3 "variable might be used uninitialized in this function" bug workaround
state = m_lexer.state();
m_lexer.next();
xpath_ast_node* n = new (m_alloc.node()) xpath_ast_node(ast_step_root);
xpath_ast_node* n = 0; // gcc3 "variable might be used uninitialized in this function" bug workaround
n = new (m_alloc.node()) xpath_ast_node(ast_step_root);
try
{