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:
1 parent
d759bd9efa
commit
574bfad1c0
1 file changed
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user