Re #9221. Fix the compiler warnings.
Merge branch 'feature/9221_comptonprofile_setmatrixworkspace' into develop