summaryrefslogtreecommitdiffstats
path: root/Python/_warnings.c
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-05-27 11:30:45 (GMT)
committerGitHub <noreply@github.com>2022-05-27 11:30:45 (GMT)
commitcb04a09d2dfd197436a11de504b92773569e19fb (patch)
tree8aa6d8280d9dde5c2058ccd8461f81f207a1a090 /Python/_warnings.c
parentddc4a782d3f32efbc03c69ddd59b6fa10911bcd9 (diff)
downloadcpython-cb04a09d2dfd197436a11de504b92773569e19fb.zip
cpython-cb04a09d2dfd197436a11de504b92773569e19fb.tar.gz
cpython-cb04a09d2dfd197436a11de504b92773569e19fb.tar.bz2
GH-93207: Remove HAVE_STDARG_PROTOTYPES configure check for stdarg.h (#93215)
Diffstat (limited to 'Python/_warnings.c')
-rw-r--r--Python/_warnings.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 942308b..085ca45 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -1136,11 +1136,7 @@ PyErr_WarnFormat(PyObject *category, Py_ssize_t stack_level,
int res;
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
res = _PyErr_WarnFormatV(NULL, category, stack_level, format, vargs);
va_end(vargs);
return res;
@@ -1153,11 +1149,7 @@ _PyErr_WarnFormat(PyObject *source, PyObject *category, Py_ssize_t stack_level,
int res;
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
res = _PyErr_WarnFormatV(source, category, stack_level, format, vargs);
va_end(vargs);
return res;
@@ -1170,11 +1162,7 @@ PyErr_ResourceWarning(PyObject *source, Py_ssize_t stack_level,
int res;
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
res = _PyErr_WarnFormatV(source, PyExc_ResourceWarning,
stack_level, format, vargs);
va_end(vargs);
@@ -1274,11 +1262,7 @@ PyErr_WarnExplicitFormat(PyObject *category,
goto exit;
}
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
message = PyUnicode_FromFormatV(format, vargs);
if (message != NULL) {
PyObject *res;