backtrace: Fix compiler warning on Windows
This change avoids a "variable 'got' might be clobbered by 'longjmp' or 'vfork'" warning with -Wextra.
This commit is contained in:
@@ -870,7 +870,7 @@ static inline int backtrace_win(void **frames, int count)
|
|||||||
HANDLE process, thread;
|
HANDLE process, thread;
|
||||||
DWORD machine;
|
DWORD machine;
|
||||||
CONTEXT context;
|
CONTEXT context;
|
||||||
int got = 0;
|
volatile int got = 0;
|
||||||
|
|
||||||
memset(&frame, 0, sizeof(frame));
|
memset(&frame, 0, sizeof(frame));
|
||||||
memset(&context, 0, sizeof(context));
|
memset(&context, 0, sizeof(context));
|
||||||
|
|||||||
Reference in New Issue
Block a user