Skip to content

Commit 9c45f2f

Browse files
swolchokZonglin Peng
authored and
Zonglin Peng
committed
fix -Werror -Wunused in executor_runner (#8955)
Update [ghstack-poisoned]
1 parent 41dd47d commit 9c45f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/portable/executor_runner/executor_runner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ int main(int argc, char** argv) {
133133
return 1;
134134
}
135135

136-
auto cpu_threads = FLAGS_cpu_threads;
137136
#if defined(ET_USE_THREADPOOL)
137+
auto cpu_threads = FLAGS_cpu_threads;
138138
uint32_t num_performant_cores = cpu_threads == -1
139139
? ::executorch::extension::cpuinfo::get_num_performant_cores()
140140
: static_cast<uint32_t>(cpu_threads);

0 commit comments

Comments
 (0)