Skip to content

Commit

Permalink
Avoid unused variables in fpga unpacked
Browse files Browse the repository at this point in the history
  • Loading branch information
metbosch committed Mar 12, 2020
1 parent b0d7d58 commit 83a738b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tl/omp/nanox-nodecl/devices/fpga/nanox-fpga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ TL::Symbol DeviceFPGA::gen_fpga_unpacked(
fpga_outline
<< "const unsigned int nanos_fpga_periodic_task_numreps = (unsigned int)(" << numreps_src << ");"
<< "const unsigned int nanos_fpga_periodic_task_period = (unsigned int)(" << period_src << ");"
<< "const nanos_err_t err0 = nanos_fpga_create_periodic_task(&nanos_fpga_task_handle, nanos_current_wd(),"
<< "nanos_fpga_create_periodic_task(&nanos_fpga_task_handle, nanos_current_wd(),"
<< "nanos_fpga_periodic_task_period, nanos_fpga_periodic_task_numreps);";
//NOTE: Not checking the value of err0 as nanox internally handles it to show proper errors
//<< "if (err0 != NANOS_OK) nanos_handle_error(err0);"
}
else
{
fpga_outline
<< "const nanos_err_t err0 = nanos_fpga_create_task(&nanos_fpga_task_handle, nanos_current_wd());";
<< "nanos_fpga_create_task(&nanos_fpga_task_handle, nanos_current_wd());";
//NOTE: Not checking the value of err0 as nanox internally handles it to show proper errors
//<< "if (err0 != NANOS_OK) nanos_handle_error(err0);"
}
Expand Down Expand Up @@ -204,7 +204,7 @@ TL::Symbol DeviceFPGA::gen_fpga_unpacked(
if (Nanos::Version::interface_is_at_least("fpga", 9))
{
fpga_outline
<< "const nanos_err_t err2 = nanos_fpga_submit_task(nanos_fpga_task_handle);";
<< "nanos_fpga_submit_task(nanos_fpga_task_handle);";
//NOTE: Not checking the value of err2 as nanox internally handles it to show proper errors
//<< "if (err2 != NANOS_OK) nanos_handle_error(err2);"
}
Expand Down

0 comments on commit 83a738b

Please sign in to comment.