Use strict function prototypes

Fixes clang error:
error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
This commit is contained in:
Luofan Chen
2023-02-09 13:15:23 +08:00
parent 3b861d5f79
commit 130315ce8d
9 changed files with 13 additions and 13 deletions

View File

@@ -19,7 +19,7 @@
#endif
int
cpu_count() {
cpu_count(void) {
return sysconf(_SC_NPROCESSORS_ONLN);
}