diff options
author | falkTX <falktx@gmail.com> | 2018-09-18 00:42:14 +0200 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2018-09-18 00:42:14 +0200 |
commit | ef4fe887ed70bbf9d87f334253d9836004cbc498 (patch) | |
tree | c3bf835a3b275958b98650a4230af6086d2ae77a | |
parent | 2ad209cb73a803aadcfe4fc4454a30c0a2daf40a (diff) |
Add new DISTRHO_NO_WARNINGS macro, use it on macOS test builds
-rwxr-xr-x | .travis/script-macos.sh | 2 | ||||
-rw-r--r-- | distrho/src/DistrhoPluginLADSPA+DSSI.cpp | 4 | ||||
-rw-r--r-- | distrho/src/DistrhoPluginVST.cpp | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/.travis/script-macos.sh b/.travis/script-macos.sh index 81188852..76f1776c 100755 --- 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 index b370da80..6f45decd 100644 --- 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 index bd537802..e7877506 100644 --- 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 |