@Override
	public void fixupDWARFFunction(DWARFFunction dfunc) throws DWARFException {
		// if there were no defined parameters and we had problems decoding local variables,
		// don't force the method to have an empty param signature because there are other
		// issues afoot.
		if (dfunc.params.isEmpty() && dfunc.localVarErrors) {
			dfunc.getProgram()
					.logWarningAt(dfunc.address, dfunc.name.getName(),
						"Inconsistent function signature information, leaving undefined");
			throw new DWARFException("Failed sanity check");
		}
	}
Check for errors and prevent probable bad function info from being locked in
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/funcfixup/SanityCheckDWARFFunctionFixup.java