From 7488f66fe553d9745f0092c8d6ceb3dc0fe9be95 Mon Sep 17 00:00:00 2001 From: Yurii Nakonechnyi Date: Wed, 19 Mar 2025 19:06:50 -0700 Subject: [PATCH] fatalWithMessage() - added warning suppression: unused 'message' argument (#50148) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50148 ## Changelog: [Internal] - suppression: unused 'message' argument X-link: https://github.com/facebook/yoga/pull/1803 Reviewed By: NickGerleman Differential Revision: D71492528 Pulled By: lunaleaps fbshipit-source-id: 6fc7a665066351d15e09f0b6c82ed1fe3f688a94 --- .../react-native/ReactCommon/yoga/yoga/debug/AssertFatal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/ReactCommon/yoga/yoga/debug/AssertFatal.cpp b/packages/react-native/ReactCommon/yoga/yoga/debug/AssertFatal.cpp index 5016053b1fa..e36af650fc3 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/debug/AssertFatal.cpp +++ b/packages/react-native/ReactCommon/yoga/yoga/debug/AssertFatal.cpp @@ -19,6 +19,7 @@ namespace facebook::yoga { #if defined(__cpp_exceptions) throw std::logic_error(message); #else + static_cast(message); // Unused std::terminate(); #endif }