fix: fix ASAN errors on clang 17 (#25469)

This commit is contained in:
dundargoc
2023-10-03 00:19:30 +02:00
committed by GitHub
parent eb1f0e8fcc
commit fd791db0ec
6 changed files with 8 additions and 7 deletions

View File

@@ -1025,10 +1025,9 @@ int delete_first_msg(void)
}
/// :messages command implementation
void ex_messages(void *const eap_p)
void ex_messages(exarg_T *eap)
FUNC_ATTR_NONNULL_ALL
{
const exarg_T *const eap = (const exarg_T *)eap_p;
struct msg_hist *p;
if (strcmp(eap->arg, "clear") == 0) {