mirror of
https://github.com/KjellKod/g3log.git
synced 2025-01-19 08:46:42 +01:00
remove windows warnings. Thanks to @ctapmex
This commit is contained in:
parent
176fca55a6
commit
ebcfe9ff06
@ -25,7 +25,6 @@
|
||||
#include <mutex>
|
||||
|
||||
|
||||
#pragma once
|
||||
#if !(defined(WIN32) || defined(_WIN32) || defined(__WIN32__))
|
||||
#error "stacktrace_win.cpp used but not on a windows system"
|
||||
#endif
|
||||
@ -82,7 +81,6 @@ void captureStackTrace(CONTEXT* context, std::vector<uint64_t>& frame_pointers)
|
||||
frame.AddrPC.Offset = context->Esp;
|
||||
machine_type = IMAGE_FILE_MACHINE_I386;
|
||||
#endif
|
||||
auto noErrors = TRUE; // Why, Oh Why have Microsoft redefined bool?
|
||||
for (size_t index = 0; index < frame_pointers.size(); ++index)
|
||||
{
|
||||
if (StackWalk64(machine_type,
|
||||
|
Loading…
x
Reference in New Issue
Block a user