Hi all,
<http://www.openoffice.org/issues/show_bug.cgi?id=56995> shows the
following problem: On compilers later than the GCC 3.4.1 we use at
Hamburg (e.g., GCC 4.0.2, but from looking at the documentation also GCC
3.4.4), -Wall implies a new -Wnon-virtual-dtor which warns about
classes with virtual functions that do not have a virtual destructor.
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.
Thus, we can either switch off -Wnon-virtual-dtor globally, or switch
off *all* warnings from within idlc-generated headers (#pragma GCC
system_header). The second option is probably preferable, as
-Wnon-virtual-dtor might point to real issues in other places of the
code base, and it is unlikely that there would be other warnings from
any idlc-generated header that we would thus suppress---the
idlc-generated headers are pretty boiler-plate.
Opinions?
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]