From ebcfe9ff0685f24addbaec515fea6ff2f5d4357a Mon Sep 17 00:00:00 2001 From: Kjell Hedstrom Date: Wed, 24 Jun 2015 14:50:46 -0600 Subject: [PATCH] remove windows warnings. Thanks to @ctapmex --- src/stacktrace_windows.cpp | 2 -- 1 file changed, 2 deletions(-) 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,