From: stevenj Date: Fri, 11 Jun 2010 04:31:35 +0000 (-0400) Subject: silence compiler warning X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cd4ad8a37d2391a3b769b3b863f36f4f7dbf95cd;p=nlopt.git silence compiler warning darcs-hash:20100611043135-c8de0-825ee0c5230607c6c9f85db0e7ff1435949a40da.gz --- diff --git a/api/nlopt-in.hpp b/api/nlopt-in.hpp index a6f2641..d68329a 100644 --- a/api/nlopt-in.hpp +++ b/api/nlopt-in.hpp @@ -70,8 +70,6 @@ namespace nlopt { class opt { private: nlopt_opt o; - result last_result; - double last_optf; void mythrow(nlopt_result ret) const { switch (ret) { @@ -160,6 +158,9 @@ namespace nlopt { } } + result last_result; + double last_optf; + public: // Constructors etc. opt() : o(NULL), xtmp(0), gradtmp(0), gradtmp0(0),