Skip to content

Commit d9851b0

Browse files
committed
PyGcc_inform: fix -Wformat-security
1 parent 09dfad4 commit d9851b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc-python-diagnostics.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ PyGcc_inform(PyObject *self, PyObject *args, PyObject *kwargs)
165165
} else if (Py_TYPE (obj) == (PyTypeObject *)&PyGccRichLocation_TypeObj) {
166166
PyGccRichLocation *richloc_obj = (PyGccRichLocation *)obj;
167167
#if (GCC_VERSION >= 8000)
168-
inform (&richloc_obj->richloc, msg);
168+
inform (&richloc_obj->richloc, "%s", msg);
169169
#else
170-
inform_at_rich_loc (&richloc_obj->richloc, msg);
170+
inform_at_rich_loc (&richloc_obj->richloc, "%s", msg);
171171
#endif
172172
Py_RETURN_NONE;
173173
} else {

0 commit comments

Comments
 (0)