[Lldb-commits] [lldb] r289009 - Work around a bogus warning on MSVC.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 7 16:54:25 PST 2016
Author: zturner
Date: Wed Dec 7 18:54:24 2016
New Revision: 289009
URL: http://llvm.org/viewvc/llvm-project?rev=289009&view=rev
Log:
Work around a bogus warning on MSVC.
Modified:
lldb/trunk/include/lldb/Target/Target.h
Modified: lldb/trunk/include/lldb/Target/Target.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/Target.h?rev=289009&r1=289008&r2=289009&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/Target.h (original)
+++ lldb/trunk/include/lldb/Target/Target.h Wed Dec 7 18:54:24 2016
@@ -225,7 +225,19 @@ private:
class EvaluateExpressionOptions {
public:
+// MSVC has a bug here that reports C4268: 'const' static/global data
+// initialized with compiler generated default constructor fills the object
+// with zeros.
+// Confirmed that MSVC is *not* zero-initializing, it's just a bogus warning.
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable : 4268)
+#endif
static constexpr std::chrono::milliseconds default_timeout{500};
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif
+
static constexpr ExecutionPolicy default_execution_policy =
eExecutionPolicyOnlyWhenNeeded;
More information about the lldb-commits
mailing list