Skip to content

Commit

Permalink
Fix unused debugToken_ in release mode (#3909)
Browse files Browse the repository at this point in the history
## Summary

This PR fixes a warning that `debugToken_` field is unused in release mode after #3745  which gets escalated to a compile error thanks to `-Werror`.

## Test plan

Check if Example app compiles in release mode.
  • Loading branch information
tomekzaw authored Jan 5, 2023
1 parent 065f241 commit a61b46f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ class ReanimatedHermesRuntime
private:
std::unique_ptr<facebook::hermes::HermesRuntime> runtime_;
ReanimatedReentrancyCheck reentrancyCheck_;
#if HERMES_ENABLE_DEBUGGER
#if REACT_NATIVE_MINOR_VERSION >= 71
facebook::hermes::inspector::chrome::DebugSessionToken debugToken_;
#endif
#endif // REACT_NATIVE_MINOR_VERSION >= 71
#endif // HERMES_ENABLE_DEBUGGER
};

} // namespace reanimated
Expand Down

0 comments on commit a61b46f

Please sign in to comment.