From 79cef614ceca6be7ecfec6967042f8188e904108 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 (#1803) Summary: X-link: https://github.com/facebook/react-native/pull/50148 ## Changelog: [Internal] - suppression: unused 'message' argument Pull Request resolved: https://github.com/facebook/yoga/pull/1803 Reviewed By: NickGerleman Differential Revision: D71492528 Pulled By: lunaleaps fbshipit-source-id: 6fc7a665066351d15e09f0b6c82ed1fe3f688a94 --- yoga/debug/AssertFatal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/yoga/debug/AssertFatal.cpp b/yoga/debug/AssertFatal.cpp index 5016053b..e36af650 100644 --- a/yoga/debug/AssertFatal.cpp +++ b/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 }