Backport VST3 diagnostic pragma

Fixes excessive warnings when compiling on macOS.

This will be overwritten with the identical upstream fix
https://github.com/steinbergmedia/vst3_pluginterfaces/blob/master/base/falignpush.h
with the next tools/update_vst3.sh run
This commit is contained in:
Robin Gareus 2021-03-01 22:14:38 +01:00
parent e3c3109618
commit 650f027a9b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -16,15 +16,13 @@
//----------------------------------------------------------------------------------------------
#if SMTG_OS_MACOS
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wpragma-pack"
#if SMTG_PLATFORM_64
#pragma pack(push, 16)
#else
#pragma pack(push, 1)
#endif
#pragma GCC diagnostic default "-Wpragma-pack"
#pragma GCC diagnostic default "-Wunknown-warning-option"
#elif defined __BORLANDC__
#pragma -a8
#elif SMTG_OS_WINDOWS