Draft: Warning fixes
Fix compiler warnings that appear in Linux & MacOsX compilations. The MR is a technical one. It is needed to get the MacOsX warnings from the CI tests. It will be split into several MRs when no more warnings appear.
Edited by Sergey Gorbunov