From 650f027a9bee1c5b88fff5fa71d0e70a45b9ae0c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 1 Mar 2021 22:14:38 +0100 Subject: [PATCH] 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 --- libs/vst3/pluginterfaces/base/falignpush.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/vst3/pluginterfaces/base/falignpush.h b/libs/vst3/pluginterfaces/base/falignpush.h index d4ebbade80..9507df9096 100644 --- a/libs/vst3/pluginterfaces/base/falignpush.h +++ b/libs/vst3/pluginterfaces/base/falignpush.h @@ -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