[llvm] r233305 - Supress MSVC padding warning in alignment test

Andrew Kaylor andrew.kaylor at intel.com
Thu Mar 26 11:48:42 PDT 2015


Author: akaylor
Date: Thu Mar 26 13:48:42 2015
New Revision: 233305

URL: http://llvm.org/viewvc/llvm-project?rev=233305&view=rev
Log:
Supress MSVC padding warning in alignment test

Modified:
    llvm/trunk/unittests/Support/AlignOfTest.cpp

Modified: llvm/trunk/unittests/Support/AlignOfTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/AlignOfTest.cpp?rev=233305&r1=233304&r2=233305&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/AlignOfTest.cpp (original)
+++ llvm/trunk/unittests/Support/AlignOfTest.cpp Thu Mar 26 13:48:42 2015
@@ -7,6 +7,12 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifdef _MSC_VER
+// Disable warnings about alignment-based structure padding.
+// This must be above the includes to suppress warnings in included templates.
+#pragma warning(disable:4324)
+#endif
+
 #include "llvm/Support/AlignOf.h"
 #include "llvm/Support/Compiler.h"
 #include "gtest/gtest.h"





More information about the llvm-commits mailing list