From e6ae062c5bdc0530cb25a326fb0bfe9b61b3f3f4 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 31 Oct 2018 01:57:04 +0100 Subject: [PATCH] quench MSVC warning --- tests/test_class.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_class.cpp b/tests/test_class.cpp index bdd6836f6..499d0cc51 100644 --- a/tests/test_class.cpp +++ b/tests/test_class.cpp @@ -12,6 +12,10 @@ #include "local_bindings.h" #include +#if defined(_MSC_VER) +# pragma warning(disable: 4324) // warning C4324: structure was padded due to alignment specifier +#endif + // test_brace_initialization struct NoBraceInitialization { NoBraceInitialization(std::vector v) : vec{std::move(v)} {}