@@ -34,7 +34,7 @@ static struct hdr_histogram* cor_histogram = NULL;
3434static struct hdr_histogram * scaled_raw_histogram = NULL ;
3535static struct hdr_histogram * scaled_cor_histogram = NULL ;
3636
37- static void load_histograms ()
37+ static void load_histograms (void )
3838{
3939 const int64_t highest_trackable_value = INT64_C (3600 ) * 1000 * 1000 ;
4040 const int32_t significant_figures = 3 ;
@@ -87,7 +87,7 @@ static void load_histograms()
8787 hdr_record_corrected_value_atomic (scaled_cor_histogram , 100000000 * scale , scaled_interval );
8888}
8989
90- static char * test_create ()
90+ static char * test_create (void )
9191{
9292 struct hdr_histogram * h = NULL ;
9393 int r = hdr_init (1 , INT64_C (3600000000 ), 3 , & h );
@@ -101,7 +101,7 @@ static char* test_create()
101101 return 0 ;
102102}
103103
104- static char * test_create_with_large_values ()
104+ static char * test_create_with_large_values (void )
105105{
106106 struct hdr_histogram * h = NULL ;
107107 int r = hdr_init (20000000 , 100000000 , 5 , & h );
@@ -130,7 +130,7 @@ static char* test_create_with_large_values()
130130 return 0 ;
131131}
132132
133- static char * test_invalid_significant_figures ()
133+ static char * test_invalid_significant_figures (void )
134134{
135135 struct hdr_histogram * h = NULL ;
136136
@@ -145,7 +145,7 @@ static char* test_invalid_significant_figures()
145145 return 0 ;
146146}
147147
148- static char * test_invalid_init ()
148+ static char * test_invalid_init (void )
149149{
150150 struct hdr_histogram * h = NULL ;
151151
@@ -155,7 +155,7 @@ static char* test_invalid_init()
155155 return 0 ;
156156}
157157
158- static char * test_total_count ()
158+ static char * test_total_count (void )
159159{
160160 load_histograms ();
161161
@@ -165,7 +165,7 @@ static char* test_total_count()
165165 return 0 ;
166166}
167167
168- static char * test_get_max_value ()
168+ static char * test_get_max_value (void )
169169{
170170 int64_t actual_raw_max , actual_cor_max ;
171171
@@ -181,7 +181,7 @@ static char* test_get_max_value()
181181 return 0 ;
182182}
183183
184- static char * test_get_min_value ()
184+ static char * test_get_min_value (void )
185185{
186186 load_histograms ();
187187
@@ -191,7 +191,7 @@ static char* test_get_min_value()
191191 return 0 ;
192192}
193193
194- static char * test_percentiles ()
194+ static char * test_percentiles (void )
195195{
196196 load_histograms ();
197197
@@ -225,7 +225,7 @@ static char* test_percentiles()
225225}
226226
227227
228- static char * test_recorded_values ()
228+ static char * test_recorded_values (void )
229229{
230230 struct hdr_iter iter ;
231231 int index ;
@@ -275,7 +275,7 @@ static char* test_recorded_values()
275275 return 0 ;
276276}
277277
278- static char * test_linear_values ()
278+ static char * test_linear_values (void )
279279{
280280 struct hdr_iter iter ;
281281 int index ;
@@ -330,7 +330,7 @@ static char* test_linear_values()
330330 return 0 ;
331331}
332332
333- static char * test_logarithmic_values ()
333+ static char * test_logarithmic_values (void )
334334{
335335 struct hdr_iter iter ;
336336 int index ;
@@ -383,7 +383,7 @@ static char* test_logarithmic_values()
383383 return 0 ;
384384}
385385
386- static char * test_reset ()
386+ static char * test_reset (void )
387387{
388388 load_histograms ();
389389
@@ -402,7 +402,7 @@ static char* test_reset()
402402 return 0 ;
403403}
404404
405- static char * test_scaling_equivalence ()
405+ static char * test_scaling_equivalence (void )
406406{
407407 int64_t expected_99th , scaled_99th ;
408408 load_histograms ();
@@ -431,7 +431,7 @@ static char* test_scaling_equivalence()
431431 return 0 ;
432432}
433433
434- static char * test_out_of_range_values ()
434+ static char * test_out_of_range_values (void )
435435{
436436 struct hdr_histogram * h ;
437437 hdr_init (1 , 1000 , 4 , & h );
@@ -441,7 +441,7 @@ static char* test_out_of_range_values()
441441 return 0 ;
442442}
443443
444- static char * test_linear_iter_buckets_correctly ()
444+ static char * test_linear_iter_buckets_correctly (void )
445445{
446446 int step_count = 0 ;
447447 int64_t total_count = 0 ;
@@ -477,7 +477,7 @@ static char* test_linear_iter_buckets_correctly()
477477 return 0 ;
478478}
479479
480- static char * test_interval_recording ()
480+ static char * test_interval_recording (void )
481481{
482482 int value_count , i , value ;
483483 char * result ;
@@ -521,7 +521,7 @@ static char* test_interval_recording()
521521 return 0 ;
522522}
523523
524- static struct mu_result all_tests ()
524+ static struct mu_result all_tests (void )
525525{
526526 mu_run_test (test_create );
527527 mu_run_test (test_invalid_init );
@@ -543,7 +543,7 @@ static struct mu_result all_tests()
543543 mu_ok ;
544544}
545545
546- static int hdr_histogram_run_tests ()
546+ static int hdr_histogram_run_tests (void )
547547{
548548 struct mu_result result = all_tests ();
549549
@@ -561,7 +561,7 @@ static int hdr_histogram_run_tests()
561561 return result .message == NULL ? 0 : -1 ;
562562}
563563
564- int main ()
564+ int main (void )
565565{
566566 return hdr_histogram_run_tests ();
567567}
0 commit comments