From c2c0581afbb4f80c9e4c1bfe30be014e118ba6c8 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Fri, 15 May 2020 08:50:11 -0700 Subject: [PATCH] Enabling [-Werror,-Wunused-property-ivar] (#28895) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/28895 ## Summary Enabling [-Werror,-Wunused-property-ivar] ## Changelog [Warning] [-Werror,-Wunused-property-ivar] Enable the warning ## Test Plan Build Reviewed By: jdthomas Differential Revision: D20961613 fbshipit-source-id: 8ec73935384800581a71ad96957b716a0d894152 --- Libraries/Text/TextInput/RCTBaseTextInputView.m | 1 + React/CoreModules/BUCK | 1 + 2 files changed, 2 insertions(+) diff --git a/Libraries/Text/TextInput/RCTBaseTextInputView.m b/Libraries/Text/TextInput/RCTBaseTextInputView.m index 37b849c277..f3d83f79d3 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputView.m +++ b/Libraries/Text/TextInput/RCTBaseTextInputView.m @@ -304,6 +304,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame) - (void)setShowSoftInputOnFocus:(BOOL)showSoftInputOnFocus { + (void)_showSoftInputOnFocus; if (showSoftInputOnFocus) { // Resets to default keyboard. self.backedTextInputView.inputView = nil; diff --git a/React/CoreModules/BUCK b/React/CoreModules/BUCK index 155d6378fa..5785fa369f 100644 --- a/React/CoreModules/BUCK +++ b/React/CoreModules/BUCK @@ -17,6 +17,7 @@ rn_apple_library( compiler_flags = [ "-Wno-error=unguarded-availability-new", "-Wno-unknown-warning-option", + "-Wno-unused-property-ivar", ], contacts = ["oncall+react_native@xmail.facebook.com"], enable_exceptions = True,