On 7/11/2011 1:09 PM, shath...@e-z.net wrote:
There are lots of places in the XALANC code where
using STL (Standard Template Library) interface
renames the type 'void' to 'result_type' and therefore
confuses GCC and other compilers, resulting in
warnings - requesting a return statement.
A 'void' function result type means that there
should not be a return statement.
The file STLHelper.hpp is just one instance in the
XALANC code. See: JIRA XALANC-570
The warnings do not create bad code! I don't have
the time to find all such occurrences at this time.
To maintain consistency in the code base, XALANC-570
should probably not be committed, maintaining
compatibility throughout the code base.
These are unfortunately compiler limitations. Returning void is
explicitly allowed by the standard for the very purpose of being able to
write generic code like this.
Can you be more explicit about which version of GCC is issuing this warning?
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org
For additional commands, e-mail: xalan-dev-h...@xml.apache.org