From 21bf7cf6cf043de323c40edc001add4cd21256ce Mon Sep 17 00:00:00 2001 From: Richard Howell Date: Thu, 1 May 2025 19:16:54 -0700 Subject: [PATCH] remove ATOMIC_VAR_INIT Summary: ATOMIC_VAR_INIT is deprecated in C17, and does nothing anyway. Changelog: [iOS][Fixed] - Remove deprecated ATOMIC_VAR_INIT macro in RCTProfile.m Reviewed By: NSProgrammer Differential Revision: D74002901 fbshipit-source-id: e453fbc084cd0b1049c7f8b052c9779d9b19b44f --- packages/react-native/React/Profiler/RCTProfile.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/React/Profiler/RCTProfile.m b/packages/react-native/React/Profiler/RCTProfile.m index 75200bed749..994e8ad6c10 100644 --- a/packages/react-native/React/Profiler/RCTProfile.m +++ b/packages/react-native/React/Profiler/RCTProfile.m @@ -42,7 +42,7 @@ static NSString *const kProfilePrefix = @"rct_profile_"; #pragma mark - Variables -static atomic_bool RCTProfileProfiling = ATOMIC_VAR_INIT(NO); +static atomic_bool RCTProfileProfiling = NO; static NSDictionary *RCTProfileInfo; static NSMutableDictionary *RCTProfileOngoingEvents;