WebAssembly / wasm-c-api

Wasm C API prototype
Apache License 2.0
534 stars 77 forks source link

fix: Use `f(void)` to specify “no argument” in C #160

Closed Hywan closed 3 years ago

Hywan commented 3 years ago

In C, a function defined as void f() declares a function that takes an unspecified number of arguments. It's better to use void f(void) to declare a function that takes no argument.

This patch fixes https://github.com/WebAssembly/wasm-c-api/issues/154.