1
0
mirror of https://github.com/olofk/serv.git synced 2026-01-11 23:42:50 +00:00

Silence warning about unused return value in testbench

This commit is contained in:
Olof Kindgren 2025-03-18 13:15:46 +01:00
parent 9e73e11d86
commit 79768a8ac9

View File

@ -154,7 +154,7 @@ int main(int argc, char **argv, char **env)
do_gpio(&gpio_context, top->q); do_gpio(&gpio_context, top->q);
} }
if (tf && top->wb_clk && top->pc_vld) if (tf && top->wb_clk && top->pc_vld)
write(tf, (void *)&top->pc_adr, 4); if (write(tf, (void *)&top->pc_adr, 4) < 0) exit(1);
if (timeout && (main_time >= timeout)) { if (timeout && (main_time >= timeout)) {
printf("Timeout: Exiting at time %lu\n", main_time); printf("Timeout: Exiting at time %lu\n", main_time);
done = true; done = true;