DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit ef4fe887ed70bbf9d87f334253d9836004cbc498
parent 2ad209cb73a803aadcfe4fc4454a30c0a2daf40a
Author: falkTX <falktx@gmail.com>
Date:   Tue, 18 Sep 2018 00:41:47 +0200

Add new DISTRHO_NO_WARNINGS macro, use it on macOS test builds

Diffstat:
M.travis/script-macos.sh | 2+-
Mdistrho/src/DistrhoPluginLADSPA+DSSI.cpp | 4++--
Mdistrho/src/DistrhoPluginVST.cpp | 4+++-
3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.travis/script-macos.sh b/.travis/script-macos.sh @@ -3,7 +3,7 @@ set -e # Preparation -_FLAGS="-Werror" +_FLAGS="-DDISTRHO_NO_WARNINGS -Werror" export CFLAGS="${_FLAGS}" export CXXFLAGS="${_FLAGS}" export MACOS_OLD=true diff --git a/distrho/src/DistrhoPluginLADSPA+DSSI.cpp b/distrho/src/DistrhoPluginLADSPA+DSSI.cpp @@ -30,12 +30,12 @@ # if DISTRHO_PLUGIN_WANT_MIDI_INPUT || DISTRHO_PLUGIN_WANT_MIDI_OUTPUT # error Cannot use MIDI with LADSPA # endif -# if DISTRHO_PLUGIN_WANT_STATE +# if DISTRHO_PLUGIN_WANT_STATE && !defined(DISTRHO_NO_WARNINGS) # warning LADSPA cannot handle states # endif #endif -#if DISTRHO_PLUGIN_WANT_TIMEPOS +#if DISTRHO_PLUGIN_WANT_TIMEPOS && !defined(DISTRHO_NO_WARNINGS) # warning LADSPA/DSSI does not support TimePos #endif diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp @@ -405,7 +405,9 @@ public: # ifdef __LP64__ fUsingNsView = true; # else -# warning 32bit VST UIs on OSX only work if the host supports "hasCockosViewAsConfig" +# ifndef DISTRHO_NO_WARNINGS +# warning 32bit VST UIs on OSX only work if the host supports "hasCockosViewAsConfig" +# endif fUsingNsView = false; # endif # endif // DISTRHO_OS_MAC