1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
tpoole 2017-07-26 16:28:20 +01:00
parent 99c5843c3f
commit 281c2fe2af

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, "@@:",