From 073e7a08e83ab61198e6b9e106369e876a5b7509 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 15 Jun 2021 08:17:28 -0700 Subject: [PATCH] Work around MSVC compiler intricacies. --- lldb/include/lldb/Utility/Timer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lldb/include/lldb/Utility/Timer.h b/lldb/include/lldb/Utility/Timer.h index ae30e71..4696a80 100644 --- a/lldb/include/lldb/Utility/Timer.h +++ b/lldb/include/lldb/Utility/Timer.h @@ -47,7 +47,11 @@ public: /// Default constructor. Timer(Category &category, const char *format, ...) - __attribute__((format(printf, 3, 4))); +#if !defined(_MSC_VER) + // MSVC appears to have trouble recognizing the this argument in the constructor. + __attribute__((format(printf, 3, 4))) +#endif + ; /// Destructor ~Timer(); -- 2.7.4