More cases of #5477 functions with empty argument lists

Building on macOS 13.3.1 (22E261) clang 14.0.3 (clang-1403.0.22.14.1)
running to errors like #5477 where functions without argument lists at
least need void.

Looking for possible suspect functions via:

  git grep -E "^([A-Za-z_]+ )?[A-Za-z_]+\()" \*.c \*.m
This commit is contained in:
Derek Schrock
2023-04-16 01:08:03 -04:00
parent 77e2572c5a
commit 3b57acf03c
6 changed files with 7 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ user_cache_dir(void) {
}
static PyObject*
process_group_map() {
process_group_map(void) {
int num_of_processes = proc_listallpids(NULL, 0);
size_t bufsize = sizeof(pid_t) * (num_of_processes + 1024);
FREE_AFTER_FUNCTION pid_t *buf = malloc(bufsize);