Skip to content

Commit 3c0ad81

Browse files
TatianaKaposfacebook-github-bot
authored andcommitted
Comment out unreferenced formal parameter (facebook#36853)
Summary: Recent windows integration brought in a change where a unreferenced formal parameter was introduced in TurboModule.h. Windows treats with warning as an error, this change comments out the formal parameter name to get rid of the error/warning. ## Changelog: [GENERAL] [FIXED] - Comment out unreferenced formal parameter Pull Request resolved: facebook#36853 Test Plan: Passed Windows testcases Reviewed By: javache Differential Revision: D45007332 Pulled By: philIip fbshipit-source-id: 2e8128549d628a8be6bcd76c1fa473d0bc27649b
1 parent ce17c37 commit 3c0ad81

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/ReactCommon/react/nativemodule/core/ReactCommon

1 file changed

+1
-1
lines changed

packages/react-native/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class JSI_EXPORT TurboModule : public facebook::jsi::HostObject {
120120
static_cast<unsigned int>(meta.argCount),
121121
[this, meta](
122122
jsi::Runtime &rt,
123-
const jsi::Value &thisVal,
123+
[[maybe_unused]] const jsi::Value &thisVal,
124124
const jsi::Value *args,
125125
size_t count) { return meta.invoker(rt, *this, args, count); });
126126
}

0 commit comments

Comments
 (0)