From 7f0fd06bf7fc548faee9001f596cfb29565c24e7 Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Tue, 26 Sep 2017 23:08:39 +0000 Subject: [PATCH] [libcxx] [test] Silence warning C4324 for MSVC. This warning "structure was padded due to alignment specifier" says that the compiler is going to do exactly what you asked it to do. It's triggered by the tests for over-aligned dynamic memory allocation. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@314257 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/support/msvc_stdlib_force_include.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/support/msvc_stdlib_force_include.hpp b/test/support/msvc_stdlib_force_include.hpp index 06dae9620..83120c7eb 100644 --- a/test/support/msvc_stdlib_force_include.hpp +++ b/test/support/msvc_stdlib_force_include.hpp @@ -54,6 +54,7 @@ const AssertionDialogAvoider assertion_dialog_avoider{}; // Silence compiler warnings. #pragma warning(disable: 4180) // qualifier applied to function type has no meaning; ignored + #pragma warning(disable: 4324) // structure was padded due to alignment specifier #pragma warning(disable: 4521) // multiple copy constructors specified #pragma warning(disable: 4702) // unreachable code #pragma warning(disable: 28251) // Inconsistent annotation for 'new': this instance has no annotations.