@@ -415,14 +415,16 @@ static void DFTrieDescend(DFTrieContext *ctx, const uint8_t *node, size_t nameLe
415415}
416416
417417static id DFDigitizerDelegateGetter (id self, SEL _cmd) {
418+ (void )_cmd;
418419 return objc_getAssociatedObject (self, DFDigitizerDelegateAssociationKey);
419420}
420421
421422static id DFDigitizerWakeDelegateGetter (id self, SEL _cmd) {
423+ (void )_cmd;
422424 return objc_getAssociatedObject (self, DFDigitizerWakeDelegateAssociationKey);
423425}
424426
425- static Class DFEnsureDigitizerProxyClass (Class baseClass) {
427+ static Class __attribute__ ((unused)) DFEnsureDigitizerProxyClass(Class baseClass) {
426428 if (baseClass == Nil ) {
427429 return Nil ;
428430 }
@@ -505,7 +507,7 @@ __asm__ volatile(
505507 return result;
506508}
507509
508- static id DFCallSwiftSelfGetter (id selfObject, const char *symbolName) {
510+ static id __attribute__ ((unused)) DFCallSwiftSelfGetter(id selfObject, const char *symbolName) {
509511 if (selfObject == nil ) return nil ;
510512 void *function = dlsym (RTLD_DEFAULT , symbolName);
511513 if (function == NULL ) {
@@ -541,6 +543,7 @@ static id DFCallSwiftSelfGetterByPattern(id selfObject, const char *prefix, cons
541543 NSMutableDictionary <NSNumber *, id > *unwrapped = [NSMutableDictionary dictionaryWithCapacity: [(NSDictionary *)screens count ]];
542544 SEL screenSelector = sel_registerName (" screen" );
543545 [(NSDictionary *)screens enumerateKeysAndObjectsUsingBlock: ^(id key, id value, BOOL *stop) {
546+ (void )stop;
544547 if (![key isKindOfClass: [NSNumber class ]] || value == nil ) {
545548 return ;
546549 }
@@ -556,7 +559,7 @@ static id DFCallSwiftSelfGetterByPattern(id selfObject, const char *prefix, cons
556559 return unwrapped;
557560}
558561
559- static uint32_t DFCallSwiftSelfGetterU32 (id selfObject, const char *symbolName) {
562+ static uint32_t __attribute__ ((unused)) DFCallSwiftSelfGetterU32(id selfObject, const char *symbolName) {
560563 if (selfObject == nil ) {
561564 return 0 ;
562565 }
@@ -578,7 +581,7 @@ __asm__ volatile(
578581 return result;
579582}
580583
581- static uintptr_t DFCallSwiftUWordGetter (const char *symbolName) {
584+ static uintptr_t __attribute__ ((unused)) DFCallSwiftUWordGetter(const char *symbolName) {
582585 if (symbolName == NULL ) {
583586 return 0 ;
584587 }
@@ -599,7 +602,7 @@ __asm__ volatile(
599602 return result;
600603}
601604
602- static BOOL DFCallSwiftVoidMethodWithSelfAndTwoArgs (id selfObject, id firstArgument, const void *secondArgument, const char *symbolName) {
605+ static BOOL __attribute__ ((unused)) DFCallSwiftVoidMethodWithSelfAndTwoArgs(id selfObject, id firstArgument, const void *secondArgument, const char *symbolName) {
603606 if (selfObject == nil || firstArgument == nil || secondArgument == nil ) {
604607 return NO ;
605608 }
@@ -637,7 +640,7 @@ __asm__ volatile(
637640 return YES ;
638641}
639642
640- static BOOL DFCallSwiftVoidMethodWithSelfAndObject (id selfObject, id firstArgument, const char *symbolName) {
643+ static BOOL __attribute__ ((unused)) DFCallSwiftVoidMethodWithSelfAndObject(id selfObject, id firstArgument, const char *symbolName) {
641644 if (selfObject == nil || firstArgument == nil ) return NO ;
642645 void *function = dlsym (RTLD_DEFAULT , symbolName);
643646 if (function == NULL ) {
@@ -653,7 +656,7 @@ static BOOL DFCallSwiftVoidMethodWithSelfAndObjectByPattern(id selfObject, id fi
653656 return DFCallSwiftVoidMethodWithSelfAndObjectByFunction (selfObject, firstArgument, function);
654657}
655658
656- static BOOL DFCallSwiftVoidMethodWithSelfAndUWordAndBool (id selfObject, uintptr_t firstArgument, BOOL secondArgument, const char *symbolName) {
659+ static BOOL __attribute__ ((unused)) DFCallSwiftVoidMethodWithSelfAndUWordAndBool(id selfObject, uintptr_t firstArgument, BOOL secondArgument, const char *symbolName) {
657660 if (selfObject == nil ) {
658661 return NO ;
659662 }
@@ -676,7 +679,7 @@ __asm__ volatile(
676679 return YES ;
677680}
678681
679- static BOOL DFCallSwiftThrowingMethodWithSelfAndObjectAndUWord (id selfObject, id firstArgument, uintptr_t secondArgument, const char *symbolName, NSError **error) {
682+ static BOOL __attribute__ ((unused)) DFCallSwiftThrowingMethodWithSelfAndObjectAndUWord(id selfObject, id firstArgument, uintptr_t secondArgument, const char *symbolName, NSError **error) {
680683 if (selfObject == nil || firstArgument == nil ) {
681684 return NO ;
682685 }
@@ -1055,7 +1058,7 @@ __asm__ volatile(
10551058 return YES ;
10561059}
10571060
1058- static BOOL DFCallSwiftUnitAngleMeasurementGetter (id selfObject, const char *symbolName, DFUnitAngleMeasurement *measurement) {
1061+ static BOOL __attribute__ ((unused)) DFCallSwiftUnitAngleMeasurementGetter(id selfObject, const char *symbolName, DFUnitAngleMeasurement *measurement) {
10591062 if (selfObject == nil || measurement == NULL ) return NO ;
10601063 void *function = dlsym (RTLD_DEFAULT , symbolName);
10611064 if (function == NULL ) {
@@ -1089,7 +1092,7 @@ __asm__ volatile(
10891092 return YES ;
10901093}
10911094
1092- static BOOL DFCallSwiftUnitAngleMeasurementSetter (id selfObject, DFUnitAngleMeasurement measurement, const char *symbolName) {
1095+ static BOOL __attribute__ ((unused)) DFCallSwiftUnitAngleMeasurementSetter(id selfObject, DFUnitAngleMeasurement measurement, const char *symbolName) {
10931096 if (selfObject == nil ) return NO ;
10941097 void *function = dlsym (RTLD_DEFAULT , symbolName);
10951098 if (function == NULL ) {
@@ -2132,13 +2135,15 @@ - (nullable instancetype)initWithUDID:(NSString *)udid error:(NSError * _Nullabl
21322135 _screenAdapterCallbackUUID,
21332136 _callbackQueue,
21342137 ^(id simScreen) {
2138+ (void )simScreen;
21352139 __strong typeof (weakSelf) strongSelf = weakSelf;
21362140 if (strongSelf == nil ) {
21372141 return ;
21382142 }
21392143 [strongSelf updateStatus: @" CoreSimulator screen proxy connected" ];
21402144 },
21412145 ^(id simScreen) {
2146+ (void )simScreen;
21422147 __strong typeof (weakSelf) strongSelf = weakSelf;
21432148 if (strongSelf == nil ) {
21442149 return ;
@@ -2248,6 +2253,7 @@ - (nullable instancetype)initWithUDID:(NSString *)udid error:(NSError * _Nullabl
22482253 [strongSelf notifyDelegateOfFrame: strongSelf->_latestPixelBuffer];
22492254 },
22502255 ^(id surface, id maskedSurface) {
2256+ (void )maskedSurface;
22512257 __strong typeof (weakSelf) strongSelf = weakSelf;
22522258 if (strongSelf == nil ) {
22532259 return ;
0 commit comments