From 517e8ea4269fb832f29d9eab642d57f1a8371149 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 20 Jan 2018 02:49:53 -0500 Subject: [PATCH] remove unused function, fixes mingw build --- src/os.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/os.cpp b/src/os.cpp index 8f830b94c9..e312854612 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -390,15 +390,15 @@ static int os_exec_process_posix(const char *exe, ZigList &args, #if defined(ZIG_OS_WINDOWS) -static void win32_panic(const char *str) { - DWORD err = GetLastError(); - LPSTR messageBuffer = nullptr; - FormatMessageA( - FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL); - zig_panic(str, messageBuffer); - LocalFree(messageBuffer); -} +//static void win32_panic(const char *str) { +// DWORD err = GetLastError(); +// LPSTR messageBuffer = nullptr; +// FormatMessageA( +// FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, +// NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL); +// zig_panic(str, messageBuffer); +// LocalFree(messageBuffer); +//} static int os_exec_process_windows(const char *exe, ZigList &args, Termination *term, Buf *out_stderr, Buf *out_stdout)