GCC 4.4 compiler warning...

2010-03-11
2013-05-20
  • Carl Godkin
    Carl Godkin
    2010-03-11

    We're starting to build with gcc 4.4 using -Wall and tinyxmlparser.cpp gets this warning:

    tinyxmlparser.cpp:357: warning: suggest parentheses around ‘&&’ within ‘||’

    Operator precedence is correct here but I guess they just want you to make it explicit.  I added the parentheses as suggested and the warning went away.