Skip to content

Commit

Permalink
Added suppression for warnings about unused parameters in 'publish<Ty…
Browse files Browse the repository at this point in the history
…pe E>()' func (#1141)

Summary: Pull Request resolved: facebook/yoga#1141

Reviewed By: yungsters

Differential Revision: D40025354

Pulled By: yungsters

fbshipit-source-id: 6eaaa77b71db95ab0dbc0a4f459c9d85f7e36c42
  • Loading branch information
inobelar authored and facebook-github-bot committed Oct 4, 2022
1 parent d9a5c66 commit c136398
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ReactCommon/yoga/yoga/event/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ struct YOGA_EXPORT Event {
static void publish(const YGNode& node, const TypedData<E>& eventData = {}) {
#ifdef YG_ENABLE_EVENTS
publish(node, E, Data{eventData});
#else
(void) node;
(void) eventData;
#endif
}

Expand Down

0 comments on commit c136398

Please sign in to comment.