This function had a "bool" return type but nothing used it.
Fixes GCC warning "'return' with no value, in function returning non-void".
Reported by Jeremy Lavergne.
static bool run_factor (struct dataset *ds, const struct cmd_factor *factor);
static bool run_factor (struct dataset *ds, const struct cmd_factor *factor);
-static bool do_factor_by_matrix (const struct cmd_factor *factor, struct idata *idata);
+static void do_factor_by_matrix (const struct cmd_factor *factor, struct idata *idata);
casereader_destroy (r);
}
casereader_destroy (r);
}
do_factor_by_matrix (const struct cmd_factor *factor, struct idata *idata)
{
if (!idata->mm.cov && !idata->mm.corr)
{
msg (ME, _("The dataset has no complete covariance or correlation matrix."));
do_factor_by_matrix (const struct cmd_factor *factor, struct idata *idata)
{
if (!idata->mm.cov && !idata->mm.corr)
{
msg (ME, _("The dataset has no complete covariance or correlation matrix."));
}
if (idata->mm.cov && !idata->mm.corr)
}
if (idata->mm.cov && !idata->mm.corr)
if (idata->n_extractions == 0)
{
msg (MW, _("The %s criteria result in zero factors extracted. Therefore no analysis will be performed."), "FACTOR");
if (idata->n_extractions == 0)
{
msg (MW, _("The %s criteria result in zero factors extracted. Therefore no analysis will be performed."), "FACTOR");
}
if (idata->n_extractions > factor->n_vars)
}
if (idata->n_extractions > factor->n_vars)
msg (MW,
_("The %s criteria result in more factors than variables, which is not meaningful. No analysis will be performed."),
"FACTOR");
msg (MW,
_("The %s criteria result in more factors than variables, which is not meaningful. No analysis will be performed."),
"FACTOR");
gsl_vector_free (initial_communalities);
gsl_vector_free (extracted_communalities);
}
gsl_vector_free (initial_communalities);
gsl_vector_free (extracted_communalities);
}