Fix/warnings
This MR fixes a number of compiler warnings such as unused variables and variables which might be used potentially uninitialised.
This MR fixes a number of compiler warnings such as unused variables and variables which might be used potentially uninitialised.