Stephan Bergmann wrote:
Thorsten Behrens wrote:

Stephan Bergmann <[EMAIL PROTECTED]> writes:


On such compilers, this warning will occur for each idlc-generated UNO
header (com/sun/star/uno/XInterface.hpp etc.).  For reasons of
compatibility, it is not an option to change those idlc-generated
headers and add a virtual destructor to them.


Is there really no feasible way to close that hole? I'm perfectly fine
with the pragma solution, but still think it would be a good idea to
forbid calling base class destructors (what about declaring a
protected non-virtual destructor in XInterface?).


Good idea, thanks. Adding protected non-virtual dtor to all the "interface" classes generated by codemaker.

Bad idea   :(

It appears that the GCC 3.4.1 we use in Hamburg supports -Wnon-virtual-dtor, but in a broken way that only issues warnings in some situations and not in others. Adding protected non-virtual dtors to "interface" classes generated by codemaker "live" on CWS warnings01 caused warnings to appear for example for cppu::ImplHelper1 which did not appear before. So, I am right now backing out the addition of protected non-virtual dtors on CWS warnings01 again, and will look for a better solution...

-Stephan

-Stephan

Cheers,

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to