aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--interface/opt.cc4
-rw-r--r--methods/powell/linmin.hpp4
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<int,fit_space> 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<rT,pT>* pfoo;
func_adaptor(){}
- func_adaptor(const func_adaptor&){}
+ func_adaptor(const func_adaptor&)
+ :p1(),xi1(),pfoo(0)
+ {}
public:
/*