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
This commit is contained in:
Yurii Nakonechnyi
2025-03-19 19:06:50 -07:00
committed by Facebook GitHub Bot
parent 6455a848a7
commit 79cef614ce

View File

@@ -19,6 +19,7 @@ namespace facebook::yoga {
#if defined(__cpp_exceptions) #if defined(__cpp_exceptions)
throw std::logic_error(message); throw std::logic_error(message);
#else #else
static_cast<void>(message); // Unused
std::terminate(); std::terminate();
#endif #endif
} }