diff options
-rw-r--r-- | src/pugixpath.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index 68ddfd0..34f1cfe 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -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
{
|