Resolve compiler warnings

There are a lot of compiler warning for unused variables and imports. We should try to resolve as many as possible.

Check

  • uninitialized
  • do-subscript
  • unused-variable

Ignore

  • unused-dummy-argument
Edited by Sebastian Müller