mirror of https://github.com/rust-lang/nomicon
As you may know, an empty parameter list can have [different semantics] in C compared to a `(void)` parameter list. Also, while it's fine to declare `main()` with an empty parameter list, it's implementation defined as to whether it is acceptable. Declare `main` with `(void)` so we use a standard-defined signature from section 5.1.2.2.1 of C99. [different semantics]: https://godbolt.org/z/fW66MsaMMpull/331/head
parent
66d097d3d8
commit
d57566a923
Loading…
Reference in new issue