From c1363984f1a418cb1be59d927895a69be7b9ed1e Mon Sep 17 00:00:00 2001 From: Yurii Nakonechnyi Date: Mon, 3 Oct 2022 22:04:06 -0700 Subject: [PATCH] Added suppression for warnings about unused parameters in 'publish()' func (#1141) Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1141 Reviewed By: yungsters Differential Revision: D40025354 Pulled By: yungsters fbshipit-source-id: 6eaaa77b71db95ab0dbc0a4f459c9d85f7e36c42 --- ReactCommon/yoga/yoga/event/event.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ReactCommon/yoga/yoga/event/event.h b/ReactCommon/yoga/yoga/event/event.h index a5978914a9b956..a50f8e4301fa80 100644 --- a/ReactCommon/yoga/yoga/event/event.h +++ b/ReactCommon/yoga/yoga/event/event.h @@ -91,6 +91,9 @@ struct YOGA_EXPORT Event { static void publish(const YGNode& node, const TypedData& eventData = {}) { #ifdef YG_ENABLE_EVENTS publish(node, E, Data{eventData}); +#else + (void) node; + (void) eventData; #endif }