Fix Trac #2136: reporting of unused variables