X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fmeans.c;h=bb1cf59926fb8eccc3ee3149609271fd1f929594;hb=5581c901aba8df3b31f6406d7fff09e26a9e7fc1;hp=40ee4a9035eb14e192e62dd9411f4c9178d737ca;hpb=76ce1b51c803d48ff034d6f036768ce1af809945;p=pspp diff --git a/src/language/stats/means.c b/src/language/stats/means.c index 40ee4a9035..bb1cf59926 100644 --- a/src/language/stats/means.c +++ b/src/language/stats/means.c @@ -198,6 +198,8 @@ means_destroy_cells (const struct means *means, struct cell *cell, destroy_cell (means, table, cell); } +#if 0 + static void dump_cell (const struct cell *cell, const struct mtable *mt, int level) { @@ -258,6 +260,8 @@ dump_tree (const struct cell *cell, const struct mtable *table, } } +#endif + /* Generate a hash based on the values of the N variables in the array VARS which are taken from the case C. */ static unsigned int @@ -533,7 +537,7 @@ populate_table (const struct means *means, const struct mtable *mt, const struct cell *cell, struct pivot_table *pt) { - size_t *indexes = xcalloc (pt->n_dimensions, sizeof *indexes); + size_t *indexes = XCALLOC (pt->n_dimensions, size_t); for (int v = 0; v < mt->n_dep_vars; ++v) { for (int s = 0; s < means->n_statistics; ++s) @@ -747,7 +751,6 @@ means_shipout_single (const struct mtable *mt, const struct means *means, const struct workspace *ws) { struct pivot_table *pt = pivot_table_create (N_("Report")); - pt->omit_empty = true; struct pivot_dimension *dim_cells = pivot_dimension_create (pt, PIVOT_AXIS_COLUMN, N_("Statistics")); @@ -789,7 +792,6 @@ means_shipout_multivar (const struct mtable *mt, const struct means *means, } struct pivot_table *pt = pivot_table_create (ds_cstr (&dss)); - pt->omit_empty = true; ds_destroy (&dss); struct pivot_dimension *dim_cells =