Browse Source

Narrowed the scope where -Wundeclared-selector is ignored in the AUv3 wrapper

tags/2021-05-28
tpoole 8 years ago
parent
commit
281c2fe2af
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm

+ 3
- 1
modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm View File

@@ -72,7 +72,6 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-completeness"
#pragma clang diagnostic ignored "-Wundeclared-selector"
// TODO: ask Timur: use SFINAE to automatically generate this for all NSObjects
template <> struct ContainerDeletePolicy<AUAudioUnitBusArray> { static void destroy (NSObject* o) { [o release]; } };
@@ -199,10 +198,13 @@ private:
{
addIvar<JuceAudioUnitv3Base*> ("cppObject");
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
addMethod (@selector (initWithComponentDescription:options:error:juceClass:),
initWithComponentDescriptionAndJuceClass, "@@:",
@encode (AudioComponentDescription),
@encode (AudioComponentInstantiationOptions), "^@@");
#pragma clang diagnostic pop
addMethod (@selector (initWithComponentDescription:options:error:),
initWithComponentDescription, "@@:",


Loading…
Cancel
Save