From 0a3d0e4e38e45a4d3e83bcda54ea359a23e0da80 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Thu, 13 Feb 2025 15:47:10 -0800 Subject: [PATCH] Add missing break; in RCTEventDispatcher.mm Summary: [Changelog] [Internal] - Add missing break; in RCTEventDispatcher.mm This fixes a compile error if a stricter warning setting is used as otherwise compilation fails with ``` react-native-github/packages/react-native/React/CoreModules/RCTEventDispatcher.mm:110:9: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] 110 | default: | ^ react-native-github/packages/react-native/React/CoreModules/RCTEventDispatcher.mm:110:9: note: insert 'break;' to avoid fall-through 110 | default: | ^ | break; 1 error generated. Interaction with installer failed. ``` Reviewed By: joevilches Differential Revision: D69625062 --- packages/react-native/React/CoreModules/RCTEventDispatcher.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/React/CoreModules/RCTEventDispatcher.mm b/packages/react-native/React/CoreModules/RCTEventDispatcher.mm index 6517cb15db6a..dbb4e4b21116 100644 --- a/packages/react-native/React/CoreModules/RCTEventDispatcher.mm +++ b/packages/react-native/React/CoreModules/RCTEventDispatcher.mm @@ -107,6 +107,7 @@ - (void)sendTextEventWithType:(RCTTextEventType)type break; case '\n': key = @"Enter"; + break; default: break; }