Skip to content

Commit 91bb0e2

Browse files
committed
Fix compilation warnings
1 parent 39ff05b commit 91bb0e2

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

libworkstream_df/profiling.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ void dump_wqueue_counters (unsigned int num_workers, wstream_df_thread_p* wstrea
525525

526526
memset(papi_counters_accum, 0, sizeof(papi_counters_accum));
527527

528-
for (int i = 0; i < num_workers; ++i) {
528+
for (unsigned i = 0; i < num_workers; ++i) {
529529
for(evt = 0; evt < papi_num_events; evt++) {
530530
papi_counters_accum[evt] += wstream_df_worker_threads[i]->papi_counters[evt];
531531
}

libworkstream_df/trace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void trace_runtime_counters(struct wstream_df_thread* cthread)
7979
#endif // PROFILE_RUSAGE
8080

8181
uint64_t steals = 0;
82-
for(int level = 0; level < topology_depth; level++)
82+
for(unsigned level = 0; level < topology_depth; level++)
8383
steals += cthread->steals_mem[level];
8484

8585
trace_counter(cthread, RUNTIME_COUNTER_BASE+RUNTIME_COUNTER_STEALS, steals);
@@ -522,7 +522,7 @@ void dump_events_ostv(int num_workers, wstream_df_thread_p* wstream_df_worker_th
522522
dsk_cre.counter_id = th->events[k].counter.counter_id;
523523
dsk_cre.value = th->events[k].counter.value;
524524

525-
fprintf(stderr,"Tracing counter id %d with value %llu.\n", th->events[k].counter.counter_id, th->events[k].counter.value);
525+
fprintf(stderr,"Tracing counter id %" PRIu64 " with value %" PRId64 ".\n", th->events[k].counter.counter_id, th->events[k].counter.value);
526526

527527
write_struct_convert(fp, &dsk_cre, sizeof(dsk_cre), trace_counter_event_conversion_table, 0);
528528
}

libworkstream_df/wstream_df.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,10 +1732,7 @@ void openstream_start_hardware_counters(void) {
17321732

17331733
void openstream_pause_hardware_counters(void)
17341734
{
1735-
int64_t local_ts = rdtsc();
1736-
wstream_df_thread_p cthread = current_thread;
1737-
1738-
for(unsigned i = 0; i < wstream_num_workers; i++)
1735+
for(unsigned i = 0; i < wstream_num_workers; i++)
17391736
openstream_pause_hardware_counters_single(wstream_df_worker_threads[i]);
17401737

17411738
trace_measure_end(cthread);

0 commit comments

Comments
 (0)