Skip to content

Commit

Permalink
avifutil.c: fix avifQueryCPUCount() empty param list (#2662)
Browse files Browse the repository at this point in the history
() -> (void); this fixes a -Wstrict-prototypes warning.
  • Loading branch information
jzern authored Mar 4, 2025
1 parent a25d9a3 commit 541c10c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/shared/avifutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ int avifQueryCPUCount(void)

#include <sys/sysctl.h>

int avifQueryCPUCount()
int avifQueryCPUCount(void)
{
int mib[4];
int numCPU;
Expand All @@ -442,7 +442,7 @@ int avifQueryCPUCount()

// Emscripten

int avifQueryCPUCount()
int avifQueryCPUCount(void)
{
return 1;
}
Expand All @@ -453,7 +453,7 @@ int avifQueryCPUCount()

#include <unistd.h>

int avifQueryCPUCount()
int avifQueryCPUCount(void)
{
int numCPU = (int)sysconf(_SC_NPROCESSORS_ONLN);
return (numCPU > 0) ? numCPU : 1;
Expand Down

0 comments on commit 541c10c

Please sign in to comment.