summaryrefslogtreecommitdiffstats
path: root/Python/structmember.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/structmember.c')
-rw-r--r--Python/structmember.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/structmember.c b/Python/structmember.c
index e0014c4..3eb7218 100644
--- a/Python/structmember.c
+++ b/Python/structmember.c
@@ -90,10 +90,10 @@ PyMember_GetOne(const char *addr, PyMemberDef *l)
return v;
}
-#define WARN(msg) \
- do { \
- if (PyErr_Warn(PyExc_RuntimeWarning, msg) < 0) \
- return -1; \
+#define WARN(msg) \
+ do { \
+ if (PyErr_WarnEx(PyExc_RuntimeWarning, msg, 1) < 0) \
+ return -1; \
} while (0)
int