Deal with compiler warnings re #9260

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>