Skip to content

Commit 645af11

Browse files
authored
fix(tensorrt_common): fix unreadVariable (#8350)
fix:unreadVariable Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 1640c06 commit 645af11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/tensorrt_common/src/tensorrt_common.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ void TrtCommon::setup()
137137
is_initialized_ = false;
138138
return;
139139
}
140+
// cppcheck-suppress unreadVariable
140141
std::string engine_path = model_file_path_;
141142
if (model_file_path_.extension() == ".engine") {
142143
std::cout << "Load ... " << model_file_path_ << std::endl;
@@ -193,6 +194,7 @@ void TrtCommon::setup()
193194
logger_.stop_throttle(log_thread);
194195
logger_.log(nvinfer1::ILogger::Severity::kINFO, "End build engine");
195196
}
197+
// cppcheck-suppress unreadVariable
196198
engine_path = cache_engine_path;
197199
} else {
198200
is_initialized_ = false;

0 commit comments

Comments
 (0)