Skip to content

Commit

Permalink
Fix all functions without parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Dec 3, 2024
1 parent 75f904c commit e3269c7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/access.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ HPMaddThread(int cpu_id)
}

void
HPMfinalize()
HPMfinalize(void)
{
topology_init();
if (registeredCpuList)
Expand Down
10 changes: 5 additions & 5 deletions src/affinity.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ static int affinity_addRocmDomain(int nodeId, AffinityDomain* domain, int offset
/* ##### FUNCTION DEFINITIONS - EXPORTED FUNCTIONS ################## */

int
affinity_init()
affinity_init(void)
{
int err = 0;
int numberOfDomains = 1; /* all systems have the node domain */
Expand Down Expand Up @@ -1052,7 +1052,7 @@ affinity_init()
}

void
affinity_finalize()
affinity_finalize(void)
{
if (affinity_initialized == 0)
{
Expand Down Expand Up @@ -1154,7 +1154,7 @@ affinity_finalize()
}

int
affinity_processGetProcessorId()
affinity_processGetProcessorId(void)
{
int ret;
cpu_set_t cpu_set;
Expand All @@ -1170,7 +1170,7 @@ affinity_processGetProcessorId()
}

int
affinity_threadGetProcessorId()
affinity_threadGetProcessorId(void)
{
cpu_set_t cpu_set;
CPU_ZERO(&cpu_set);
Expand Down Expand Up @@ -1238,7 +1238,7 @@ affinity_getDomain(char* domain)
}

void
affinity_printDomains()
affinity_printDomains(void)
{
for ( int i=0; i < affinity_numberOfDomains; i++ )
{
Expand Down
2 changes: 1 addition & 1 deletion src/cpuFeatures.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ cpuFeatureNamesFixed[CPUFEATURES_MAX] = {};
/* ##### FUNCTION DEFINITIONS - EXPORTED FUNCTIONS ################## */

void
cpuFeatures_init()
cpuFeatures_init(void)
{
if (features_initialized)
{
Expand Down
2 changes: 1 addition & 1 deletion src/libperfctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ likwid_markerResetRegion(const char* regionTag)
}

int
likwid_getProcessorId()
likwid_getProcessorId(void)
{
int i;
cpu_set_t cpu_set;
Expand Down
2 changes: 1 addition & 1 deletion src/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -4231,7 +4231,7 @@ perfmon_readMarkerFile(const char* filename)
}

void
perfmon_destroyMarkerResults()
perfmon_destroyMarkerResults(void)
{
int i = 0, j = 0;
if (markerResults != NULL)
Expand Down

0 comments on commit e3269c7

Please sign in to comment.