Browse Source

Add new DISTRHO_NO_WARNINGS macro, use it on macOS test builds

pull/72/head
falkTX 6 years ago
parent
commit
ef4fe887ed
3 changed files with 6 additions and 4 deletions
  1. +1
    -1
      .travis/script-macos.sh
  2. +2
    -2
      distrho/src/DistrhoPluginLADSPA+DSSI.cpp
  3. +3
    -1
      distrho/src/DistrhoPluginVST.cpp

+ 1
- 1
.travis/script-macos.sh View File

@@ -3,7 +3,7 @@
set -e

# Preparation
_FLAGS="-Werror"
_FLAGS="-DDISTRHO_NO_WARNINGS -Werror"
export CFLAGS="${_FLAGS}"
export CXXFLAGS="${_FLAGS}"
export MACOS_OLD=true


+ 2
- 2
distrho/src/DistrhoPluginLADSPA+DSSI.cpp View File

@@ -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



+ 3
- 1
distrho/src/DistrhoPluginVST.cpp View File

@@ -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


Loading…
Cancel
Save