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:
Tobias Brunner 2024-07-12 10:24:35 +02:00
parent d759bd9efa
commit 574bfad1c0

View File

@ -870,7 +870,7 @@ static inline int backtrace_win(void **frames, int count)
HANDLE process, thread;
DWORD machine;
CONTEXT context;
int got = 0;
volatile int got = 0;
memset(&frame, 0, sizeof(frame));
memset(&context, 0, sizeof(context));