Skip to content

Commit

Permalink
Tests: Explicitly void unused c variable (#1560)
Browse files Browse the repository at this point in the history
When importing jsoo into a project where the c compiler errors on warnings, this becomes problematic. Since void is a noop, this seems like a reasonable addition to upstream and make this file more portable.
  • Loading branch information
rickyvetter authored Feb 6, 2024
1 parent afdb5f3 commit c4052f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/tests-jsoo/flush_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "caml/memory.h"

CAMLprim value flush_stdout_stderr (value unit) {
(void)unit;
CAMLparam0 (); /* v is ignored */
fflush(stderr);
fflush(stdout);
Expand Down

0 comments on commit c4052f9

Please sign in to comment.