The new compiler I'm using now has found few non-fatal errors in the 2.3
code. If could be useful here they are with my comments.
/// Maybe this and the next line should be moved inside the #if 0 above
"nlopt-2.3/slsqp/slsqp.c", line 2069: warning: statement is unreachable
dscal_sl__(n, &alpha, &s[1], 1);
^
/// Horrid C construct. Maybe nothing simple could be done to change it
to a more sane code.
"nlopt-2.3/slsqp/slsqp.c", line 2484: warning: loop is not reachable
from preceding code
do {
^
/// The statement inside the function should be: return
nlopt_set_precond_min_objective(opt, f, NULL, f_data);
"nlopt-2.3/api/options.c", line 235: warning: missing return statement
at end of non-void function "nlopt_set_min_objective"
}
^
/// The statement inside the function should be: return
nlopt_set_precond_max_objective(opt, f, NULL, f_data);
"nlopt-2.3/api/options.c", line 257: warning: missing return statement
at end of non-void function "nlopt_set_max_objective"
}
^
//// Two unreachable statements. Is the following one simply in the
wrong place?
"nlopt-2.3/api/optimize.c", line 683: warning: statement is unreachable
if (freedx) { free(opt->dx); opt->dx = NULL; }
^
"nlopt-2.3/api/optimize.c", line 684: warning: variable "ret" is used
before its value is set
return ret;
^
Hope it helps.
mario
--
Ing. Mario Valle
Swiss National Supercomputing Centre (CSCS) | http://mariovalle.name/
v. Trevano 131, 6900 Lugano, Switzerland | Tel: +41 (91) 610.82.60
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss