File optim-gcc-warnings.patch of Package octave-forge-optim
Index: optim-1.5.2/src/samin.cc
===================================================================
--- optim-1.5.2.orig/src/samin.cc
+++ optim-1.5.2/src/samin.cc
@@ -282,7 +282,7 @@ Example: see samin_example\n\
return octave_value_list();
}
- double f, fp, p, pp, fopt, rand_draw, ratio, t;
+ double f, fp, p, fopt, rand_draw, ratio, t;
Matrix details(1,3); // record function evaluations, temperatures and function values
RowVector info(3);
@@ -533,4 +533,6 @@ Example: see samin_example\n\
x = xopt;
}
}
+ // silence compiler warning
+ return octave_value_list ();
}