Skip to content

Commit 3c883a6

Browse files
committed
use 'dummy' for NOARGS method
1 parent b189115 commit 3c883a6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Modules/_datetimemodule.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2978,7 +2978,7 @@ delta_getstate(PyDateTime_Delta *self)
29782978
}
29792979

29802980
static PyObject *
2981-
delta_total_seconds(PyObject *op, PyObject *Py_UNUSED(closure))
2981+
delta_total_seconds(PyObject *op, PyObject *Py_UNUSED(dummy))
29822982
{
29832983
PyObject *total_seconds;
29842984
PyObject *total_microseconds;
@@ -3645,7 +3645,7 @@ iso_calendar_date_reduce(PyObject *self, PyObject *Py_UNUSED(ignored))
36453645
}
36463646

36473647
static PyObject *
3648-
iso_calendar_date_year(PyObject *self, void *unused)
3648+
iso_calendar_date_year(PyObject *self, void *Py_UNUSED(closure))
36493649
{
36503650
PyObject *year = PyTuple_GetItem(self, 0);
36513651
if (year == NULL) {
@@ -3655,7 +3655,7 @@ iso_calendar_date_year(PyObject *self, void *unused)
36553655
}
36563656

36573657
static PyObject *
3658-
iso_calendar_date_week(PyObject *self, void *unused)
3658+
iso_calendar_date_week(PyObject *self, void *Py_UNUSED(closure))
36593659
{
36603660
PyObject *week = PyTuple_GetItem(self, 1);
36613661
if (week == NULL) {
@@ -3665,7 +3665,7 @@ iso_calendar_date_week(PyObject *self, void *unused)
36653665
}
36663666

36673667
static PyObject *
3668-
iso_calendar_date_weekday(PyObject *self, void *unused)
3668+
iso_calendar_date_weekday(PyObject *self, void *Py_UNUSED(closure))
36693669
{
36703670
PyObject *weekday = PyTuple_GetItem(self, 2);
36713671
if (weekday == NULL) {
@@ -5115,7 +5115,7 @@ time_reduce_ex(PyObject *op, PyObject *args)
51155115
}
51165116

51175117
static PyObject *
5118-
time_reduce(PyObject *op, PyObject *Py_UNUSED(arg))
5118+
time_reduce(PyObject *op, PyObject *Py_UNUSED(dummy))
51195119
{
51205120
PyDateTime_Time *self = _PyTime_CAST(op);
51215121
return Py_BuildValue("(ON)", Py_TYPE(self), time_getstate(self, 2));
@@ -5995,19 +5995,19 @@ datetime_dealloc(PyObject *op)
59955995

59965996
/* These are all METH_NOARGS, so don't need to check the arglist. */
59975997
static PyObject *
5998-
datetime_utcoffset(PyObject *op, PyObject *Py_UNUSED(unused)) {
5998+
datetime_utcoffset(PyObject *op, PyObject *Py_UNUSED(dummy)) {
59995999
PyDateTime_DateTime *self = _PyDateTime_CAST(op);
60006000
return call_utcoffset(GET_DT_TZINFO(self), op);
60016001
}
60026002

60036003
static PyObject *
6004-
datetime_dst(PyObject *op, PyObject *Py_UNUSED(unused)) {
6004+
datetime_dst(PyObject *op, PyObject *Py_UNUSED(dummy)) {
60056005
PyDateTime_DateTime *self = _PyDateTime_CAST(op);
60066006
return call_dst(GET_DT_TZINFO(self), op);
60076007
}
60086008

60096009
static PyObject *
6010-
datetime_tzname(PyObject *op, PyObject *Py_UNUSED(unused)) {
6010+
datetime_tzname(PyObject *op, PyObject *Py_UNUSED(dummy)) {
60116011
PyDateTime_DateTime *self = _PyDateTime_CAST(op);
60126012
return call_tzname(GET_DT_TZINFO(self), op);
60136013
}

0 commit comments

Comments
 (0)