add srcpos to termination warnings