diff options
author | Zachary Turner <zturner@google.com> | 2016-12-08 00:54:24 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-12-08 00:54:24 +0000 |
commit | 7fb5e3434b157a159b15d642a677f8531c91c98d (patch) | |
tree | aaac599578defcaf6930756e155ff9d326684981 | |
parent | 0c8957c19834485c13a3c93b7c8661b594e33714 (diff) | |
download | bcm5719-llvm-7fb5e3434b157a159b15d642a677f8531c91c98d.tar.gz bcm5719-llvm-7fb5e3434b157a159b15d642a677f8531c91c98d.zip |
Work around a bogus warning on MSVC.
llvm-svn: 289009
-rw-r--r-- | lldb/include/lldb/Target/Target.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/include/lldb/Target/Target.h b/lldb/include/lldb/Target/Target.h index 5588bdc1594..8d6fc772c88 100644 --- a/lldb/include/lldb/Target/Target.h +++ b/lldb/include/lldb/Target/Target.h @@ -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; |