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
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

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