[Libreoffice] [PUSHED][PATCH] unusedcode.easy: Removed unused code (basegfx)

Caolán McNamara caolanm at redhat.com
Wed Feb 1 08:38:59 PST 2012


On Wed, 2012-02-01 at 10:16 +0000, Noel Power wrote:
> perhaps there is a callcatcher special case at work..

Anyway, fixed this up and pushed.

The special case is that callcatcher is a simple-minded compiler
wrapper, and only sees stuff that gcc emits code for. In these cases
gcc, even with -O0, doesn't emit code for inline methods that aren't
called, so while those inlines reference the "unused methods" no code
for the inlines are emitted either, i.e. the inlines that failed to
compile are *themselves* also unused.

I consider it a fun feature.

C.



More information about the LibreOffice mailing list