Skip to content

Commit c136398

Browse files
inobelarfacebook-github-bot
authored andcommitted
Added suppression for warnings about unused parameters in 'publish<Type E>()' func (#1141)
Summary: Pull Request resolved: facebook/yoga#1141 Reviewed By: yungsters Differential Revision: D40025354 Pulled By: yungsters fbshipit-source-id: 6eaaa77b71db95ab0dbc0a4f459c9d85f7e36c42
1 parent d9a5c66 commit c136398

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ReactCommon/yoga/yoga/event/event.h

+3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ struct YOGA_EXPORT Event {
9191
static void publish(const YGNode& node, const TypedData<E>& eventData = {}) {
9292
#ifdef YG_ENABLE_EVENTS
9393
publish(node, E, Data{eventData});
94+
#else
95+
(void) node;
96+
(void) eventData;
9497
#endif
9598
}
9699

0 commit comments

Comments
 (0)