Add function name to warning