All code shown as "unused" even though most of it is used

I found I'm not the only one..