def METHOD_NAME(e, errors, compiler):
	"""
	If e matches one of errors, remove it and return True
	:param matchF90: match F90 prefix in error to PGF90 in entry in e
	"""
	matchF90 = (compiler == "flang")
	matchF18 = (compiler == "f18")
	# print e, '\n', errors
	for e2 in errors:
		if e.file != e2.file and not matchF18: continue
		if e.lineno != e2.lineno and not matchF18: continue
		if e.sev != e2.sev: continue
		if e2.text != "" and e.text != e2.text: continue
		if e2.prefix != "":
			if (not matchF90) and e.prefix != e2.prefix: continue
			if matchF90 and (e.prefix != "F90" or e2.prefix != "PGF90"): continue
		errors.remove(e2)
		return True
	return False