File nlopt-2.3-no-return-in-nonvoid-function.patch of Package nlopt
diff -urN nlopt-2.3-orig/api/options.c nlopt-2.3/api/options.c
--- nlopt-2.3-orig/api/options.c 2012-07-20 20:13:42.000000000 +0200
+++ nlopt-2.3/api/options.c 2012-08-19 19:12:23.095467807 +0200
@@ -232,6 +232,7 @@
nlopt_func f, void *f_data)
{
nlopt_set_precond_min_objective(opt, f, NULL, f_data);
+ return 0;
}
nlopt_result NLOPT_STDCALL nlopt_set_precond_max_objective(nlopt_opt opt,
@@ -254,6 +255,7 @@
nlopt_func f, void *f_data)
{
nlopt_set_precond_max_objective(opt, f, NULL, f_data);
+ return 0;
}
/*************************************************************************/