Fix/compiler errors and warnings clang

Merged Timo Koch requested to merge fix/compiler-errors-and-warnings-clang into master

Merge request reports