Skip to content

Commit 21bf7cf

Browse files
rmazfacebook-github-bot
authored andcommitted
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
1 parent e4b6b34 commit 21bf7cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/React/Profiler/RCTProfile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
#pragma mark - Variables
4444

45-
static atomic_bool RCTProfileProfiling = ATOMIC_VAR_INIT(NO);
45+
static atomic_bool RCTProfileProfiling = NO;
4646

4747
static NSDictionary *RCTProfileInfo;
4848
static NSMutableDictionary *RCTProfileOngoingEvents;

0 commit comments

Comments
 (0)