Skip to content

Commit

Permalink
[fix] Fix inconsistent-missing-override compiler complaint.
Browse files Browse the repository at this point in the history
- Add override keyword for some overridden methods.

Signed-off-by: Yongjoo Ahn <[email protected]>
  • Loading branch information
anyj0527 authored and myungjoo committed Nov 27, 2024
1 parent 2b43479 commit fef7b03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions ext/nnstreamer/tensor_filter/tensor_filter_executorch_llama.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ class executorch_llama_subplugin final : public tensor_filter_subplugin
executorch_llama_subplugin (){};
~executorch_llama_subplugin (){};

tensor_filter_subplugin &getEmptyInstance ();
void configure_instance (const GstTensorFilterProperties *prop);
void invoke (const GstTensorMemory *input, GstTensorMemory *output);
tensor_filter_subplugin &getEmptyInstance () override;
void configure_instance (const GstTensorFilterProperties *prop) override;
void invoke (const GstTensorMemory *input, GstTensorMemory *output) override;
void invoke_dynamic (GstTensorFilterProperties *prop,
const GstTensorMemory *input, GstTensorMemory *output) override;
void getFrameworkInfo (GstTensorFilterFrameworkInfo &info);
int getModelInfo (model_info_ops ops, GstTensorsInfo &in_info, GstTensorsInfo &out_info);
int eventHandler (event_ops ops, GstTensorFilterFrameworkEventData &data);
void getFrameworkInfo (GstTensorFilterFrameworkInfo &info) override;
int getModelInfo (model_info_ops ops, GstTensorsInfo &in_info,
GstTensorsInfo &out_info) override;
int eventHandler (event_ops ops, GstTensorFilterFrameworkEventData &data) override;
};

const char *executorch_llama_subplugin::fw_name = "executorch-llama";
Expand Down
2 changes: 1 addition & 1 deletion tests/gstreamer_mqtt/unittest_ntp_util_mock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class ntpUtilMockTest : public ::testing::Test
/**
* @brief tear down the base fixture
*/
void TearDown ()
void TearDown () override
{
g_free (host.h_name);
g_free (host.h_aliases[0]);
Expand Down

0 comments on commit fef7b03

Please sign in to comment.