Skip to content

Commit f9dbd7c

Browse files
committed
Update for gcc >=8 change to inform with rich_location
1 parent 10f197f commit f9dbd7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gcc-python-diagnostics.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ PyGcc_inform(PyObject *self, PyObject *args, PyObject *kwargs)
164164
Py_RETURN_NONE;
165165
} else if (Py_TYPE (obj) == (PyTypeObject *)&PyGccRichLocation_TypeObj) {
166166
PyGccRichLocation *richloc_obj = (PyGccRichLocation *)obj;
167+
#if (GCC_VERSION >= 8000)
168+
inform (&richloc_obj->richloc, msg);
169+
#else
167170
inform_at_rich_loc (&richloc_obj->richloc, msg);
171+
#endif
168172
Py_RETURN_NONE;
169173
} else {
170174
return PyErr_Format(PyExc_TypeError,

0 commit comments

Comments
 (0)