Fix spurious reccmp warnings

This commit is contained in:
jonschz 2024-09-08 06:47:31 +02:00
parent 4a01d15c36
commit 53ae816e04

View File

@ -79,7 +79,6 @@ class CvdumpSymbolsParser:
"S_THUNK32",
"S_LABEL32",
"S_LDATA32",
"S_LPROC32",
"S_UDT",
]
@ -117,7 +116,7 @@ def _parse_generic_case(self, line, line_match: Match[str]):
symbol_type: str = line_match.group("symbol_type")
second_part: Optional[str] = line_match.group("second_part")
if symbol_type == "S_GPROC32":
if symbol_type in ["S_GPROC32", "S_LPROC32"]:
assert second_part is not None
if (match := self._symbol_line_function_regex.match(second_part)) is None:
logger.error("Invalid function symbol: %s", line[:-1])