projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue an error if no valid data are found
[pspp]
/
src
/
language
/
stats
/
oneway.q
diff --git
a/src/language/stats/oneway.q
b/src/language/stats/oneway.q
index c63dc3a797103d2bf037fa00cfb74b76b1991b30..9b45119f8664f1ae948a5bfc838479fa8115f921 100644
(file)
--- a/
src/language/stats/oneway.q
+++ b/
src/language/stats/oneway.q
@@
-71,13
+71,13
@@
static bool bad_weight_warn = true;
static struct cmd_oneway cmd;
/* The independent variable */
static struct cmd_oneway cmd;
/* The independent variable */
-static struct variable *indep_var;
+static
const
struct variable *indep_var;
/* Number of dependent variables */
static size_t n_vars;
/* The dependent variables */
/* Number of dependent variables */
static size_t n_vars;
/* The dependent variables */
-static struct variable **vars;
+static
const
struct variable **vars;
/* A hash table containing all the distinct values of the independent
/* A hash table containing all the distinct values of the independent
@@
-175,7
+175,8
@@
output_oneway(void)
sum += subc_list_double_at(&cmd.dl_contrast[i],j);
if ( sum != 0.0 )
sum += subc_list_double_at(&cmd.dl_contrast[i],j);
if ( sum != 0.0 )
- msg(SW,_("Coefficients for contrast %d do not total zero"),i + 1);
+ msg(SW,_("Coefficients for contrast %d do not total zero"),
+ (int) i + 1);
}
if ( stat_tables & STAT_DESC )
}
if ( stat_tables & STAT_DESC )
@@
-224,7
+225,7
@@
oneway_custom_variables (struct lexer *lexer,
&& lex_token (lexer) != T_ALL)
return 2;
&& lex_token (lexer) != T_ALL)
return 2;
- if (!parse_variables (lexer, dict, &vars, &n_vars,
+ if (!parse_variables
_const
(lexer, dict, &vars, &n_vars,
PV_DUPLICATE
| PV_NUMERIC | PV_NO_SCRATCH) )
{
PV_DUPLICATE
| PV_NUMERIC | PV_NO_SCRATCH) )
{