Skip to content

Commit

Permalink
Silence warnings when building webr outside wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Jun 17, 2024
1 parent 1dee571 commit 40c06d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webr/src/canvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ SEXP ffi_dev_canvas(SEXP args)
error("This graphics device can only be used when running under webR.");
}

SEXP ffi_dev_canvas_purge()
SEXP ffi_dev_canvas_purge(void)
{
error("This graphics device can only be used when running under webR.");
}
Expand All @@ -783,7 +783,7 @@ SEXP ffi_dev_canvas_destroy(SEXP args)
error("This graphics device can only be used when running under webR.");
}

SEXP ffi_dev_canvas_cache()
SEXP ffi_dev_canvas_cache(void)
{
error("This graphics device can only be used when running under webR.");
}
Expand Down

0 comments on commit 40c06d0

Please sign in to comment.