From: ageay Date: Wed, 20 Apr 2011 12:25:57 +0000 (+0000) Subject: Warning Hunting. X-Git-Tag: EndWorkDidier~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a36da789b50bb59b36ff9821e0efb94716e6758a;p=tools%2Fmedcoupling.git Warning Hunting. --- diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index b751f687b..cb80fd7a1 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.cxx +++ b/src/MEDCoupling/MEDCouplingMemArray.cxx @@ -1558,7 +1558,8 @@ void DataArrayDouble::applyFuncFast32(const char *func) throw(INTERP_KERNEL::Exc INTERP_KERNEL::ExprParser expr(func); expr.parse(); char *funcStr=expr.compileX86(); - MYFUNCPTR funcPtr=(MYFUNCPTR)funcStr;//he he... + MYFUNCPTR funcPtr; + *((void **)&funcPtr)=funcStr;//he he... // double *ptr=getPointer(); int nbOfComp=getNumberOfComponents(); @@ -1575,7 +1576,8 @@ void DataArrayDouble::applyFuncFast64(const char *func) throw(INTERP_KERNEL::Exc INTERP_KERNEL::ExprParser expr(func); expr.parse(); char *funcStr=expr.compileX86_64(); - MYFUNCPTR funcPtr=(MYFUNCPTR)funcStr;//he he... + MYFUNCPTR funcPtr; + *((void **)&funcPtr)=funcStr;//he he... // double *ptr=getPointer(); int nbOfComp=getNumberOfComponents();