Fix more warnings
Description
Fix a bunch of warnings from GCC.
News snippet
Fix a bunch of warnings from GCC.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.