X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fmath%2Fchart-get-scale-test.c;fp=tests%2Fmath%2Fchart-get-scale-test.c;h=d4cbe18eb03f5a1094cde4bacb619b9773901f11;hb=97fb55e07cac602cbca57ce8005de5c8a67a73cc;hp=11a572deeb8a779d3c965cd12c14930bd961de1b;hpb=6e44fb76d15ebc34122753b8a7a7d4a1b82bcb43;p=pspp diff --git a/tests/math/chart-get-scale-test.c b/tests/math/chart-get-scale-test.c index 11a572deeb..d4cbe18eb0 100644 --- a/tests/math/chart-get-scale-test.c +++ b/tests/math/chart-get-scale-test.c @@ -21,12 +21,16 @@ #include #include +#include "libpspp/compiler.h" + #include "math/decimal.h" +#include "math/chart-geometry.h" #include #include #include -void +#if 0 +static void dump_scale (const struct decimal *low, const struct decimal *interval, int n_ticks) { int i; @@ -37,16 +41,16 @@ dump_scale (const struct decimal *low, const struct decimal *interval, int n_tic decimal_add (&tick, interval); } } +#endif -void +static void test_range (double low, double high) { int n_ticks = 0; struct decimal interval; struct decimal lower; - chart_get_scale (high, low, &lower, &interval, &n_ticks); @@ -82,7 +86,7 @@ test_range (double low, double high) int -main (int argc, char **argv) +main (int argc UNUSED, char **argv UNUSED) { test_range (0.2, 11); test_range (-0.2, 11);