From 04fc0c37dc279f3a0be7513212f707a15237648e Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 3 Feb 2024 12:04:55 +0000 Subject: [PATCH] Crashlog: Tag image base with [[maybe_unused]] --- src/os/windows/crashlog_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/windows/crashlog_win.cpp b/src/os/windows/crashlog_win.cpp index 9d5221794f..cc97ba9ae8 100644 --- a/src/os/windows/crashlog_win.cpp +++ b/src/os/windows/crashlog_win.cpp @@ -427,7 +427,7 @@ static const uint MAX_FRAMES = 64; /* Get module name. */ const char *mod_name = "???"; const char *image_name = nullptr; - DWORD64 image_base = 0; + [[maybe_unused]] DWORD64 image_base = 0; IMAGEHLP_MODULE64 module; module.SizeOfStruct = sizeof(module);