From 537eaff51ecdd43a53e4fe8f2bed31b7da240e1d Mon Sep 17 00:00:00 2001 From: Stephane Plaszczynski Date: Tue, 25 Jun 2019 17:26:08 +0200 Subject: [PATCH] remove many warnings --- cmt/requirements-lite.generic | 2 +- src/AbsRand/OofNoise.cc | 3 ++- src/camel/CMB/Lollipop.cc | 2 +- src/camel/Class/ClassAdapters.hh | 1 + src/camel/Class/ClassEngine.cc | 20 ++++++-------------- src/camel/Lensing/LensingLikelihood.hh | 2 +- src/camel/MCMC/exec/mainMCMC.cc | 2 +- 7 files changed, 13 insertions(+), 19 deletions(-) diff --git a/cmt/requirements-lite.generic b/cmt/requirements-lite.generic index 1e16a18..776ec2c 100644 --- a/cmt/requirements-lite.generic +++ b/cmt/requirements-lite.generic @@ -4,7 +4,7 @@ use class * #compiler options #default is gcc here are the C++ compiler options -macro cppflags " -O2 -pipe -fPIC -Wall " +macro cppflags " -O2 -pipe -fPIC -Wall -Wno-reorder -Wno-sign-compare -Wno-unknown-pragmas" #do we need optimzations here? #macro_append cppflags "-ffast-math -m64 " diff --git a/src/AbsRand/OofNoise.cc b/src/AbsRand/OofNoise.cc index ada73c9..746ae8e 100644 --- a/src/AbsRand/OofNoise.cc +++ b/src/AbsRand/OofNoise.cc @@ -75,7 +75,8 @@ OofNoise::OofNoise(AbsGauss* r,double slope,double fmin,double fknee,double fsam OofNoise::~OofNoise(){ for (unsigned i=0;i& par) const=0; protected: diff --git a/src/camel/Class/ClassEngine.cc b/src/camel/Class/ClassEngine.cc index 9abb92f..dc35388 100644 --- a/src/camel/Class/ClassEngine.cc +++ b/src/camel/Class/ClassEngine.cc @@ -94,7 +94,7 @@ ClassEngine::ClassEngine(const ClassParams& pars): cl(0),dofree(true),pvecback(0 //prepare fp structure size_t n=pars.size(); // - parser_init(&fc,n,"pipo",_errmsg); + parser_init(&fc,n,const_cast("pipo"),_errmsg); //config for (size_t i=0;i("pipo"),_errmsg); //config for (size_t i=0;i