Prevent Xcode compiler warning that methodImpl was not initialised when taking the default path. It should never go there, and will raise an NSAssert if it does, so this is just shutting the compiler up :)

This commit is contained in:
Robert McGovern 2022-04-18 11:51:39 +01:00
parent b6b4fdfc92
commit 072130be6a
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ GENERATE_SETTER_GETTER_METHOD_PAIR(NSURL, NSURL*)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpointer-type-mismatch"
IMP methodImpl;
IMP methodImpl = NULL; // added null to shut compiler warning up if default path taken, which it shouldnt.
switch (propertyType) {
case 'c':
case 'B':