Skip to content

Commit cbab63f

Browse files
committed
fix release build warning (unused mi_stat_total_print)
1 parent f2539bb commit cbab63f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/stats.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,14 @@ static void mi_stat_peak_print(const mi_stat_count_t* stat, const char* msg, int
218218
_mi_fprintf(out, arg, "\n");
219219
}
220220

221+
#if MI_STAT>1
221222
static void mi_stat_total_print(const mi_stat_count_t* stat, const char* msg, int64_t unit, mi_output_fun* out, void* arg) {
222223
_mi_fprintf(out, arg, "%10s:", msg);
223224
_mi_fprintf(out, arg, "%12s", " "); // no peak
224225
mi_print_amount(stat->total, unit, out, arg);
225226
_mi_fprintf(out, arg, "\n");
226227
}
228+
#endif
227229

228230
static void mi_stat_counter_print(const mi_stat_counter_t* stat, const char* msg, mi_output_fun* out, void* arg ) {
229231
_mi_fprintf(out, arg, "%10s:", msg);

0 commit comments

Comments
 (0)