Skip to content

Commit

Permalink
Add new DISTRHO_NO_WARNINGS macro, use it on macOS test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Sep 17, 2018
1 parent 2ad209c commit ef4fe88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis/script-macos.sh
Expand Up @@ -3,7 +3,7 @@
set -e

# Preparation
_FLAGS="-Werror"
_FLAGS="-DDISTRHO_NO_WARNINGS -Werror"
export CFLAGS="${_FLAGS}"
export CXXFLAGS="${_FLAGS}"
export MACOS_OLD=true
Expand Down
4 changes: 2 additions & 2 deletions distrho/src/DistrhoPluginLADSPA+DSSI.cpp
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion distrho/src/DistrhoPluginVST.cpp
Expand Up @@ -405,7 +405,9 @@ class PluginVst : public ParameterCheckHelper
# 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
Expand Down

0 comments on commit ef4fe88

Please sign in to comment.