Skip to content

Commit 014e1ee

Browse files
committed
causes warning in rpython
1 parent a87ad58 commit 014e1ee

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/vmprof_common.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#include <errno.h>
55

66
#ifdef RPYTHON_VMPROF
7+
8+
int get_stack_trace(PY_THREAD_STATE_T * current, void** result, int max_depth, intptr_t pc);
9+
710
#ifdef RPYTHON_LL2CTYPES
811
/* only for testing: ll2ctypes sets RPY_EXTERN from the command-line */
912

@@ -193,7 +196,7 @@ PY_STACK_FRAME_T *get_vmprof_stack(void)
193196
#endif
194197

195198
intptr_t vmprof_get_traceback(void *stack, void *ucontext,
196-
intptr_t *result_p, intptr_t result_length)
199+
void **result_p, intptr_t result_length)
197200
{
198201
int n;
199202
int enabled;

src/vmprof_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ PY_STACK_FRAME_T *get_vmprof_stack(void);
9696
#endif
9797
RPY_EXTERN
9898
intptr_t vmprof_get_traceback(void *stack, void *ucontext,
99-
intptr_t *result_p, intptr_t result_length);
99+
void **result_p, intptr_t result_length);
100100
#endif
101101

102102
int vmprof_get_signal_type(void);

0 commit comments

Comments
 (0)