Integrate Richs work here https://github.com/MetOffice/SimSys_Scripts/tree/warnings_checker_reboot into the UM's compiler warning checker and move it to this repository.
The aim of this is to fix the warning output for more recent versions of the gnu compiler and prepare it to be rolled out across all repositories.