Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: minidump/minidump_context_writer.cc

Issue 898133002: Use recently imported MSVC warning macros (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | minidump/minidump_extensions.h » ('j') | minidump/minidump_extensions.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/minidump_context_writer.cc
diff --git a/minidump/minidump_context_writer.cc b/minidump/minidump_context_writer.cc
index 70aa96b8e0dd19f9e3b858a5d8b13a69ba52ae10..888e068478ed9d1bfdcce7ef9fe0e3ffc5cae6bb 100644
--- a/minidump/minidump_context_writer.cc
+++ b/minidump/minidump_context_writer.cc
@@ -39,16 +39,8 @@ scoped_ptr<MinidumpContextWriter> MinidumpContextWriter::CreateFromSnapshot(
}
case kCPUArchitectureX86_64: {
-#if defined(COMPILER_MSVC) && defined(ARCH_CPU_X86)
-#pragma warning(push)
-#pragma warning(disable: 4316) // Object allocated on the heap may not be 16
- // byte aligned.
-#endif
MinidumpContextAMD64Writer* context_amd64 =
- new MinidumpContextAMD64Writer();
-#if defined(COMPILER_MSVC) && defined(ARCH_CPU_X86)
-#pragma warning(pop)
-#endif
+ MSVC_SUPPRESS_WARNING(4316) new MinidumpContextAMD64Writer();
scottmg 2015/02/05 18:03:14 This one is tricky. Putting it above line 42 is in
Mark Mentovai 2015/02/05 18:24:10 scottmg wrote:
scottmg 2015/02/05 18:51:42 Done.
context.reset(context_amd64);
context_amd64->InitializeFromSnapshot(context_snapshot->x86_64);
break;
« no previous file with comments | « no previous file | minidump/minidump_extensions.h » ('j') | minidump/minidump_extensions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698