From: Ben Pfaff Date: Sun, 12 Dec 2010 05:13:03 +0000 (-0800) Subject: ONEWAY: Fix warning for passing "const" pointer as non-const parameter. X-Git-Tag: v0.7.7~115 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44a9abb173e2b0f33b011a853ae1603fda0ce29b;p=pspp-builds.git ONEWAY: Fix warning for passing "const" pointer as non-const parameter. --- diff --git a/src/language/stats/oneway.c b/src/language/stats/oneway.c index 908da803..f390a3c8 100644 --- a/src/language/stats/oneway.c +++ b/src/language/stats/oneway.c @@ -392,11 +392,11 @@ run_oneway (const struct oneway_spec *cmd, for (v = 0; v < cmd->n_vars; ++v) { - ws.vws[v].cat = categoricals_create (&cmd->indep_var, 1, - cmd->wv, cmd->exclude, - makeit, - updateit, - cmd->vars[v], ws.dd_total[v]); + ws.vws[v].cat = categoricals_create (&cmd->indep_var, 1, cmd->wv, + cmd->exclude, makeit, updateit, + CONST_CAST (struct variable *, + cmd->vars[v]), + ws.dd_total[v]); ws.vws[v].cov = covariance_2pass_create (1, &cmd->vars[v], ws.vws[v].cat,