diff --git a/src/stacktrace_windows.cpp b/src/stacktrace_windows.cpp index 3d2f5d6..73f6bdb 100644 --- a/src/stacktrace_windows.cpp +++ b/src/stacktrace_windows.cpp @@ -25,7 +25,6 @@ #include -#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& 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,