Fix 'out-of-line definition of constexpr' build error for XCode 15 for React Native (#38079)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38079 This diff fixes the ``` out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Werror,-Wdeprecated] ``` error in `RAMBundleRegistry` ## Changelog: [internal] - Fix Xcode 15 namespace build errors in `RAMBundleRegistry`. Reviewed By: javache, cipolleschi Differential Revision: D46988689 fbshipit-source-id: 5dc34b0f7d6fb266bc379b3639244bf69505aa88
This commit is contained in:
Родитель
01e62d9498
Коммит
6fbbe26f5f
|
@ -13,7 +13,10 @@
|
|||
|
||||
namespace facebook::react {
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated"
|
||||
constexpr uint32_t RAMBundleRegistry::MAIN_BUNDLE_ID;
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
std::unique_ptr<RAMBundleRegistry> RAMBundleRegistry::singleBundleRegistry(
|
||||
std::unique_ptr<JSModulesUnbundle> mainBundle) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче