Skip to content

Commit 79768a8

Browse files
committed
Silence warning about unused return value in testbench
1 parent 9e73e11 commit 79768a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/servant_tb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int main(int argc, char **argv, char **env)
154154
do_gpio(&gpio_context, top->q);
155155
}
156156
if (tf && top->wb_clk && top->pc_vld)
157-
write(tf, (void *)&top->pc_adr, 4);
157+
if (write(tf, (void *)&top->pc_adr, 4) < 0) exit(1);
158158
if (timeout && (main_time >= timeout)) {
159159
printf("Timeout: Exiting at time %lu\n", main_time);
160160
done = true;

0 commit comments

Comments
 (0)