Skip to content

Commit 3130512

Browse files
committed
Use Py_UNUSED for unused arg in init_endian_tables
1 parent 95958e8 commit 3130512

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Modules/_struct.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,10 +1510,8 @@ static formatdef lilendian_table[] = {
15101510
static _PyOnceFlag endian_tables_init_once = {0};
15111511

15121512
static int
1513-
init_endian_tables(void *arg)
1513+
init_endian_tables(void *Py_UNUSED(arg))
15141514
{
1515-
(void)arg; // Unused but required by _Py_once_fn_t signature
1516-
15171515
const formatdef *native = native_table;
15181516
formatdef *other, *ptr;
15191517
#if PY_LITTLE_ENDIAN

0 commit comments

Comments
 (0)