Fixing compiler warnings 2
Description
Fixing compiler warnings for impure function calls in if where the compiler does function elimination. Also removed unused arguments in some routines.
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.