[xsd-users] Warning 6005

Uri Karagila uri at hyperroll.com
Mon Feb 18 03:56:42 EST 2008


Hi,

The aCC (HP ANSI C++ B3910B A.03.80) is the most updated version of the
compiler for HP-UX 11.11.
Yes, the commenting out the cycle at line 299 removes the warning.
And I don't understand how this loop helps you in squashing warnings.

Regards

Uri
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Sunday, February 17, 2008 11:02 AM
To: Uri Karagila
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] Warning 6005

Hi Uri,

Uri Karagila <uri at hyperroll.com> writes:

> file libxsd/xsd/cxx/tree/elements.hxx, line 319:
>         virtual type*
>         _clone (flags f = 0, container* c = 0) const
>         {
>           return new type (*this, f, c);  // <<< This line causes
> warning 6005; if simple "return 0;" used, no warning generated.
>         }

This line is unchanged from the previous version which I believe
didn't have this warning. If you look closely at it, you will
see that the inline copy c-tor is called. This copy c-tor was
changed compared to the previous version. It also has a no-op
loop (see line 299) which is used to squash the "unused variable"
king of warnings. So I strongly suspect that it is this while
loop that is causing the warning. Since I cannot check it myself
(we have a newer version of the compiler), I am asking you to
try to comment line 299 out and let me know if this warning is
still there.

Thank you,
Boris




More information about the xsd-users mailing list