Skip to content

Commit

Permalink
Fix Hermes warnings/errors from stricter compiler settings in Horizon
Browse files Browse the repository at this point in the history
Summary:
Changelog: [Internal][Fixed]
Fixed strict compiler errors and warnings

Reviewed By: mattbfb

Differential Revision: D42217295

fbshipit-source-id: 0943a4f6f5607f9499c7c92d6627877260d749fb
  • Loading branch information
Jonathan Lehman authored and facebook-github-bot committed Jan 9, 2023
1 parent 0ff7b7f commit 9e0cb5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ReactCommon/hermes/inspector/Inspector.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Inspector : public facebook::hermes::debugger::EventObserver,
std::shared_ptr<RuntimeAdapter> adapter,
InspectorObserver &observer,
bool pauseOnFirstStatement);
~Inspector();
~Inspector() override;

/**
* disable turns off the inspector. All of the subsequent methods will not do
Expand Down
10 changes: 5 additions & 5 deletions ReactCommon/hermes/inspector/InspectorState.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class InspectorState::RunningDetached : public InspectorState {
}

RunningDetached(Inspector &inspector) : InspectorState(inspector) {}
~RunningDetached() {}
~RunningDetached() override {}

std::pair<NextStatePtr, CommandPtr> didPause(MonitorLock &lock) override;
std::pair<NextStatePtr, bool> enable() override;
Expand All @@ -211,7 +211,7 @@ class InspectorState::RunningWaitEnable : public InspectorState {
}

RunningWaitEnable(Inspector &inspector) : InspectorState(inspector) {}
~RunningWaitEnable() {}
~RunningWaitEnable() override {}

std::pair<NextStatePtr, CommandPtr> didPause(MonitorLock &lock) override;
std::pair<NextStatePtr, bool> enable() override;
Expand Down Expand Up @@ -260,7 +260,7 @@ class InspectorState::PausedWaitEnable : public InspectorState {
}

PausedWaitEnable(Inspector &inspector) : InspectorState(inspector) {}
~PausedWaitEnable() {}
~PausedWaitEnable() override {}

std::pair<NextStatePtr, CommandPtr> didPause(MonitorLock &lock) override;
std::pair<NextStatePtr, bool> enable() override;
Expand Down Expand Up @@ -306,7 +306,7 @@ class InspectorState::Running : public InspectorState {
}

Running(Inspector &inspector) : InspectorState(inspector) {}
~Running() {}
~Running() override {}

void onEnter(InspectorState *prevState) override;

Expand Down Expand Up @@ -366,7 +366,7 @@ class InspectorState::Paused : public InspectorState {
}

Paused(Inspector &inspector) : InspectorState(inspector) {}
~Paused() {}
~Paused() override {}

void onEnter(InspectorState *prevState) override;

Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/hermes/inspector/detail/SerialExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace detail {
class SerialExecutor : public folly::Executor {
public:
SerialExecutor(const std::string &name);
~SerialExecutor();
~SerialExecutor() override;

void add(folly::Func) override;

Expand Down

0 comments on commit 9e0cb5a

Please sign in to comment.