From cd4ad8a37d2391a3b769b3b863f36f4f7dbf95cd Mon Sep 17 00:00:00 2001 From: stevenj Date: Fri, 11 Jun 2010 00:31:35 -0400 Subject: [PATCH] silence compiler warning darcs-hash:20100611043135-c8de0-825ee0c5230607c6c9f85db0e7ff1435949a40da.gz --- api/nlopt-in.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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), -- 2.30.2