From 3f49c020714ec67e43d4c6f64264bc16dc860a58 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 22 Aug 2013 14:51:11 +0000 Subject: [PATCH] Unwarningization under Win. --- src/MEDCoupling/MEDCouplingMemArray.cxx | 4 ++-- src/MEDCoupling/MEDCouplingTimeDiscretization.hxx | 8 ++++---- src/MEDCoupling/MEDCouplingUMesh.cxx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index 67edb173c..3aa679965 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.cxx +++ b/src/MEDCoupling/MEDCouplingMemArray.cxx @@ -2161,7 +2161,7 @@ DataArrayInt *DataArrayDouble::computeNbOfInteractionsWith(const DataArrayDouble *retPtr=bbt.getNbOfIntersectingElems(thisBBPtr); break; } - defaut: + default: throw INTERP_KERNEL::Exception("DataArrayDouble::computeNbOfInteractionsWith : space dimension supported are [1,2,3] !"); } @@ -8607,7 +8607,7 @@ DataArrayInt *DataArrayInt::accumulatePerChunck(const int *bgOfIndex, const int int *tmp=ret->getPointer(); for(int i=0;i=w[0]) { for(int j=w[0];j& tinyInfoI, const std::vector& tinyInfoD) throw(INTERP_KERNEL::Exception); public: static const TypeOfTimeDiscretization DISCRETIZATION=NO_TIME; - static const char REPR[]; + MEDCOUPLING_EXPORT static const char REPR[]; private: static const char EXCEPTION_MSG[]; }; @@ -279,7 +279,7 @@ namespace ParaMEDMEM MEDCOUPLING_EXPORT void getValueOnDiscTime(int eltId, int iteration, int order, double *value) const throw(INTERP_KERNEL::Exception); public: static const TypeOfTimeDiscretization DISCRETIZATION=ONE_TIME; - static const char REPR[]; + MEDCOUPLING_EXPORT static const char REPR[]; private: static const char EXCEPTION_MSG[]; protected: @@ -347,7 +347,7 @@ namespace ParaMEDMEM MEDCOUPLING_EXPORT void checkTimePresence(double time) const throw(INTERP_KERNEL::Exception); public: static const TypeOfTimeDiscretization DISCRETIZATION=CONST_ON_TIME_INTERVAL; - static const char REPR[]; + MEDCOUPLING_EXPORT static const char REPR[]; private: static const char EXCEPTION_MSG[]; protected: @@ -450,7 +450,7 @@ namespace ParaMEDMEM MEDCOUPLING_EXPORT void powEqual(const MEDCouplingTimeDiscretization *other) throw(INTERP_KERNEL::Exception); public: static const TypeOfTimeDiscretization DISCRETIZATION=LINEAR_TIME; - static const char REPR[]; + MEDCOUPLING_EXPORT static const char REPR[]; }; } diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 7f8032783..6bb2da093 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -8851,7 +8851,7 @@ void MEDCouplingUMesh::ExtractFromIndexedArrays2(int idsOfSelectStart, int idsOf int *work=arrIo->getPointer(); *work++=0; int lgth=0; - for(std::size_t i=0;i=0 && idsItalloc(lgth,1); work=arro->getPointer(); idsIt=idsOfSelectStart; - for(std::size_t i=0;i=0 && arrIndxPtr[idsIt+1]<=maxSizeOfArr) work=std::copy(arrInPtr+arrIndxPtr[idsIt],arrInPtr+arrIndxPtr[idsIt+1],work); -- 2.30.2