mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Add a pragma to supress an MSVC warning on some of the absurd code I'm
using to test the alignment support library. Patch from Nikola on IRC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53afd08bd1
commit
bd9060c5c0
@ -16,6 +16,12 @@ using namespace llvm;
|
||||
|
||||
namespace {
|
||||
|
||||
// Disable warnings about questionable type definitions.
|
||||
// We're testing that even questionable types work with the alignment utilities.
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4584)
|
||||
#endif
|
||||
|
||||
// Define some fixed alignment types to use in these tests.
|
||||
#if __cplusplus == 201103L || __has_feature(cxx_alignas)
|
||||
typedef char alignas(1) A1;
|
||||
|
Loading…
Reference in New Issue
Block a user