Thanks Dave,

Including the +W option worked.  But do the new versions of the library (>
2.6.0) take care of /correct these annoying warnings?

Regards


On 5/7/08, David Bertoni <[EMAIL PROTECTED]> wrote:
>
> Minimol M wrote:
>
> > Hi,
> >
> > I am using xercesc 2.6.0 in hpux -ia64.   While compiling using the
> > header
> > files #include <xercesc/sax2/XMLReaderFactory.hpp> and #include
> > <xercesc/sax2/SAX2XMLReader.hpp>
> > I get these warnings.
> >
> >
> > "./../../../include/xercesc/framework/XMLGrammarPool.hpp", line 266:
> > warning
> > #2815-D:
> >          type qualifier on return type is meaningless
> >        inline MemoryManager* const    getMemoryManager()
> >
> > The Xerces-C source code is full of these little annoyances.  You can
> ignore the warning.
>                                        ^
>
> >
> > "./../../../include/xercesc/sax2/XMLReaderFactory.hpp", line 106:
> > warning
> > #2111-D:
> >          statement is unreachable
> >        return 0;
> >        ^
> >
> This is left over from the days when compilers would report an error if a
> function didn't have a return statement, even if a throw statement meant the
> normal return path could never be taken.  You can ignore this warning too.
>
> Are these issues with the library?  Anybody has a solution to get rid of
> > these warnings?
> >
> They are not issues.  You could use the HP compiler option to disable
> those particular warnings, which would be "+W2111,2815".
>
> Otherwise, you would have to modify the Xerces-C sources, which is not
> very efficient or maintainable.
>
> Dave
>

Reply via email to