Skip to content

Commit

Permalink
[fix] Fix unused variable compiler complaint.
Browse files Browse the repository at this point in the history
- Remove an unused variable in openvino.cc
- Use `UNUSED` macro for an unused variable in trix_engine.cc

Signed-off-by: Yongjoo Ahn <[email protected]>
  • Loading branch information
anyj0527 authored and myungjoo committed Nov 27, 2024
1 parent 203b880 commit 2b43479
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion ext/nnstreamer/tensor_filter/tensor_filter_openvino.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ TensorFilterOpenvino::loadModel (accl_hw hw)
{
std::string targetDevice;
std::vector<std::string> strVector;
std::vector<std::string>::iterator strVectorIter;

if (this->_isLoaded) {
/** @todo Can OpenVino support to replace the loaded model with a new one? */
Expand Down
1 change: 1 addition & 0 deletions ext/nnstreamer/tensor_filter/tensor_filter_trix_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ TensorFilterTRIxEngine::TensorFilterTRIxEngine ()
: dev_type_ (NPUCOND_CONN_UNKNOWN), dev_ (nullptr), model_path_ (nullptr),
model_meta_ (nullptr), model_id_ (0), trix_in_info_ (), trix_out_info_ ()
{
UNUSED (dev_type_);
gst_tensors_info_init (addressof (nns_in_info_));
gst_tensors_info_init (addressof (nns_out_info_));
}
Expand Down

0 comments on commit 2b43479

Please sign in to comment.