Skip to content

Commit 523059b

Browse files
committed
refactor: fix a C warning
``` In file included from /usr/include/python3.13/Python.h:72, from coverage/ctracer/util.h:7, from coverage/ctracer/tracer.c:6: /usr/include/python3.13/object.h:952:23: warning: ‘Py_DECREF’ is static but used in inline function ‘MyFrame_BorrowCode’ which is not static 952 | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) | ^~~~~~~~~ coverage/ctracer/tracer.c:298:5: note: in expansion of macro ‘Py_DECREF’ 298 | Py_DECREF(pCode); | ^~~~~~~~~ ```
1 parent 59c724d commit 523059b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/ctracer/tracer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ CTracer_set_pdata_stack(CTracer *self)
289289
}
290290

291291
// Thanks for the idea, memray!
292-
inline PyCodeObject*
292+
static inline PyCodeObject*
293293
MyFrame_BorrowCode(PyFrameObject* frame)
294294
{
295295
// Return a borrowed reference.

0 commit comments

Comments
 (0)