Skip to content

Commit d25a219

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused variables in executorch/examples/sdk/sdk_example_runner/sdk_example_runner.cpp (#2007)
Summary: Pull Request resolved: #2007 LLVM-15 has a warning `-Wunused-but-set-variable` which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance. This diff either (a) removes an unused variable and, possibly, it's associated code, or (b) qualifies the variable with `[[maybe_unused]]`, mostly in cases where the variable _is_ used, but, eg, in an `assert` statement that isn't present in production code. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: palmje Differential Revision: D53779562 fbshipit-source-id: ba6fd427fe8d4dcba9020d858122a687e9e9bf0e
1 parent 53f2513 commit d25a219

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/sdk/sdk_example_runner/sdk_example_runner.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ int main(int argc, char** argv) {
228228
etdump_gen.set_event_tracer_debug_level(
229229
EventTracerDebugLogLevel::kProgramOutputs);
230230
}
231-
// Prepare the inputs.
232-
exec_aten::ArrayRef<void*> inputs;
233231
// Use the inputs embedded in the bundled program.
234232
status = torch::executor::bundled_program::LoadBundledInput(
235233
*method, file_data->data(), FLAGS_testset_idx);

0 commit comments

Comments
 (0)