From fccbe113dfa498dbd2059429605c645087c194c9 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Wed, 29 Apr 2009 17:05:01 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@34 ed2142bd-67ad-457f-ba7c-d818d4011675 --- interface/opt.cc | 4 +++- methods/powell/linmin.hpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/interface/opt.cc b/interface/opt.cc index d129173..0e2f3b4 100644 --- a/interface/opt.cc +++ b/interface/opt.cc @@ -9,7 +9,7 @@ using namespace std; using namespace opt_utilities; -const static int max_fit_space_num=100; +static const int max_fit_space_num=100; struct fit_space; static map fit_space_map; struct fit_space @@ -128,6 +128,7 @@ void freeze_param_(const int& nfit,const char* pname) } catch(opt_exception& e) { + (void)e; iter->second.fit.set_param_modifier(fp); } } @@ -147,6 +148,7 @@ void thaw_param_(const int& nfit,const char* pname) } catch(opt_exception& e) { + (void)e; //iter->second.fit.set_param_modifier(fp); } } diff --git a/methods/powell/linmin.hpp b/methods/powell/linmin.hpp index 5ab5af0..286405a 100644 --- a/methods/powell/linmin.hpp +++ b/methods/powell/linmin.hpp @@ -14,7 +14,9 @@ namespace opt_utilities const pT p1,xi1; const func_obj* pfoo; func_adaptor(){} - func_adaptor(const func_adaptor&){} + func_adaptor(const func_adaptor&) + :p1(),xi1(),pfoo(0) + {} public: /* -- cgit v1.2.2