[Chapel Merge] Use f(void) for no-argument functions in C

Branch: refs/heads/main
Revision: 7bdfc6a
Author: mppf
Link: Use f(void) for no-argument functions in C by mppf · Pull Request #20739 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20739 from mppf/fix-prototype-mismatches

Use f(void) for no-argument functions in C

To be more correct & to resolve some warnings from the CCE compiler.

Continues PR #20714.

  • make WARNINGS=1 works in the CCE configuration that was failing
  • full local testing

Reviewed by @riftEmber - thanks!

Modified Files:
M runtime/src/chpl-comm-diags.c

M runtime/src/chpl-comm.c
M runtime/src/chpl-gpu-diags.c
M runtime/src/chplmemtrack.c

Compare: https://github.com/chapel-lang/chapel/compare/80a67cf448d8...7bdfc6a77694