rn/objc | Suppress warnings about set but unused variables.

Summary:
Fixing a warning, so we can enable it globally.

Changelog:
[iOS][Fixed] - Silenced 'set but unused variable' warning.

Differential Revision: D64161528
This commit is contained in:
Nikita Lutsenko
2024-10-10 00:24:08 -07:00
committed by Facebook GitHub Bot
parent 0d6908f4ed
commit 77422d197e
2 changed files with 2 additions and 2 deletions
@@ -273,7 +273,7 @@ RCT_EXTERN_C_END
for (NSUInteger i = 2; i < numberOfArguments; i++) {
const char *objcType = [methodSignature getArgumentTypeAtIndex:i];
BOOL isNullableType = NO;
[[maybe_unused]] BOOL isNullableType = NO;
RCTMethodArgument *argument = arguments[i - 2];
NSString *typeName = argument.type;
SEL selector = selectorForType(typeName);
@@ -59,7 +59,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init)
newEvent);
BOOL newEventIsMoreRecent = NO;
BOOL oldEventIsMoreRecent = NO;
__unused BOOL oldEventIsMoreRecent = NO;
NSInteger count = _reactTouches.count;
for (int i = 0; i < count; i++) {
NSDictionary *touch = _reactTouches[i];