From eba5eed38dda7251380e61b06c8ca0972894d796 Mon Sep 17 00:00:00 2001 From: Gerard Ryan Date: Mon, 27 May 2024 13:22:52 +1000 Subject: [PATCH] Allow incorrect typedef with va_list --- tests/expectations/va_list.c | 4 ++-- tests/expectations/va_list.compat.c | 4 ++-- tests/expectations/va_list.cpp | 4 ++-- tests/expectations/va_list.pyx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/expectations/va_list.c b/tests/expectations/va_list.c index 0ab9e975..c0091366 100644 --- a/tests/expectations/va_list.c +++ b/tests/expectations/va_list.c @@ -5,13 +5,13 @@ typedef int32_t (*VaListFnPtr)(va_list); -typedef int32_t (*VaListFnPtr2)(va_list); +typedef int32_t (*VaListFnPtr2)(void); int32_t va_list_test(va_list ap); int32_t va_list_test2(va_list ap); void va_list_fn_ptrs(int32_t (*ptr1)(va_list), - int32_t (*ptr2)(va_list), + int32_t (*ptr2)(void), VaListFnPtr ptr3, VaListFnPtr2 ptr4); diff --git a/tests/expectations/va_list.compat.c b/tests/expectations/va_list.compat.c index 6c26e80a..9e461ddb 100644 --- a/tests/expectations/va_list.compat.c +++ b/tests/expectations/va_list.compat.c @@ -5,7 +5,7 @@ typedef int32_t (*VaListFnPtr)(va_list); -typedef int32_t (*VaListFnPtr2)(va_list); +typedef int32_t (*VaListFnPtr2)(void); #ifdef __cplusplus extern "C" { @@ -16,7 +16,7 @@ int32_t va_list_test(va_list ap); int32_t va_list_test2(va_list ap); void va_list_fn_ptrs(int32_t (*ptr1)(va_list), - int32_t (*ptr2)(va_list), + int32_t (*ptr2)(void), VaListFnPtr ptr3, VaListFnPtr2 ptr4); diff --git a/tests/expectations/va_list.cpp b/tests/expectations/va_list.cpp index 5f322287..06c26bec 100644 --- a/tests/expectations/va_list.cpp +++ b/tests/expectations/va_list.cpp @@ -6,7 +6,7 @@ using VaListFnPtr = int32_t(*)(va_list); -using VaListFnPtr2 = int32_t(*)(va_list); +using VaListFnPtr2 = int32_t(*)(); extern "C" { @@ -15,7 +15,7 @@ int32_t va_list_test(va_list ap); int32_t va_list_test2(va_list ap); void va_list_fn_ptrs(int32_t (*ptr1)(va_list), - int32_t (*ptr2)(va_list), + int32_t (*ptr2)(), VaListFnPtr ptr3, VaListFnPtr2 ptr4); diff --git a/tests/expectations/va_list.pyx b/tests/expectations/va_list.pyx index b337c95f..0ee17467 100644 --- a/tests/expectations/va_list.pyx +++ b/tests/expectations/va_list.pyx @@ -8,13 +8,13 @@ cdef extern from *: ctypedef int32_t (*VaListFnPtr)(va_list); - ctypedef int32_t (*VaListFnPtr2)(va_list); + ctypedef int32_t (*VaListFnPtr2)(); int32_t va_list_test(va_list ap); int32_t va_list_test2(va_list ap); void va_list_fn_ptrs(int32_t (*ptr1)(va_list), - int32_t (*ptr2)(va_list), + int32_t (*ptr2)(), VaListFnPtr ptr3, VaListFnPtr2 ptr4);