From 276f6e0bfd5a40ab6e06a5af03f5ab53b78b3f9c Mon Sep 17 00:00:00 2001 From: SupSuper Date: Thu, 9 May 2019 03:07:07 +0100 Subject: SDL: Fix MSVC warnings Fixes warning C4121: alignment of a member was sensitive to packing by hiding warnings from system headers --- backends/platform/sdl/sdl-sys.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends/platform/sdl/sdl-sys.h b/backends/platform/sdl/sdl-sys.h index 9b87f5eabd..edb57c30f9 100644 --- a/backends/platform/sdl/sdl-sys.h +++ b/backends/platform/sdl/sdl-sys.h @@ -144,7 +144,11 @@ #include #endif +// Ignore warnings from system headers pulled by SDL +#pragma warning(push) +#pragma warning(disable:4121) // alignment of a member was sensitive to packing #include +#pragma warning(pop) // Restore the forbidden exceptions from the hack above #if !defined(FORBIDDEN_SYMBOL_ALLOW_ALL) && defined(_MSC_VER) -- cgit v1.2.3