Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 5e90e7a

Browse files
tomekzawfluiddot
authored andcommitted
Fix unused debugToken_ in release mode (software-mansion#3909)
## Summary This PR fixes a warning that `debugToken_` field is unused in release mode after software-mansion#3745 which gets escalated to a compile error thanks to `-Werror`. ## Test plan Check if Example app compiles in release mode.
1 parent 605cdce commit 5e90e7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@ class ReanimatedHermesRuntime
122122
private:
123123
std::unique_ptr<facebook::hermes::HermesRuntime> runtime_;
124124
ReanimatedReentrancyCheck reentrancyCheck_;
125+
#if HERMES_ENABLE_DEBUGGER
125126
#if REACT_NATIVE_MINOR_VERSION >= 71
126127
facebook::hermes::inspector::chrome::DebugSessionToken debugToken_;
127-
#endif
128+
#endif // REACT_NATIVE_MINOR_VERSION >= 71
129+
#endif // HERMES_ENABLE_DEBUGGER
128130
};
129131

130132
} // namespace reanimated

0 commit comments

Comments
 (0)