From: ageay Date: Mon, 11 Apr 2011 17:00:12 +0000 (+0000) Subject: Warnings suppressions. X-Git-Tag: V6_main_FINAL~1022 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=926be9d91a8d1afe6c14d0d02291b2290065bdff;p=tools%2Fmedcoupling.git Warnings suppressions. --- diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.cxx index 479b5c78e..2e0bfc033 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelAsmX86.cxx @@ -149,14 +149,14 @@ void INTERP_KERNEL::AsmX86::convertOneInstructionInML(const std::string& inst, s void INTERP_KERNEL::AsmX86::convertMov(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { const char ASM1[]="ebp,esp"; - const char ML1[2]={0x89,0xe5}; + const unsigned char ML1[2]={0x89,0xe5}; if(inst==ASM1) { ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); return ; } const char ASM2[]="rbp,rsp"; - const char ML2[3]={0x48,0x89,0xe5}; + const unsigned char ML2[3]={0x48,0x89,0xe5}; if(inst==ASM2) { ml.insert(ml.end(),ML2,ML2+sizeof(ML2)); @@ -186,7 +186,7 @@ void INTERP_KERNEL::AsmX86::convertMovToEsp(const std::string& inst1, const std: throw INTERP_KERNEL::Exception("not recognized convertMovToEsp exp !"); std::string inst1bis=inst1.substr(1,inst1.length()-2); const char ASM1[]="esp"; - const char ML1[3]={0xc7,0x04,0x24}; + const unsigned char ML1[3]={0xc7,0x04,0x24}; if(inst1bis==ASM1) {//mov dword [esp],0x3ff3c0ca ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); @@ -197,7 +197,7 @@ void INTERP_KERNEL::AsmX86::convertMovToEsp(const std::string& inst1, const std: { if(inst1bis[3]=='+') {//mov dword [esp+4],0x3ff3c0ca - const char ML2[3]={0xc7,0x44,0x24}; + const unsigned char ML2[3]={0xc7,0x44,0x24}; ml.insert(ml.end(),ML2,ML2+sizeof(ML2)); std::string::size_type pos=inst1bis.find_first_of(']'); std::string inst1_1=inst1bis.substr(4,pos-4-1); @@ -209,7 +209,7 @@ void INTERP_KERNEL::AsmX86::convertMovToEsp(const std::string& inst1, const std: throw INTERP_KERNEL::Exception("Not recognized exp : mov [esp@..],..."); } const char ASM3[]="rsp"; - const char ML3[3]={0xc7,0x04,0x24}; + const unsigned char ML3[3]={0xc7,0x04,0x24}; if(inst1bis==ASM3) {//mov dword [rsp],0x3ff3c0ca ml.insert(ml.end(),ML3,ML3+sizeof(ML3)); @@ -220,7 +220,7 @@ void INTERP_KERNEL::AsmX86::convertMovToEsp(const std::string& inst1, const std: { if(inst1bis[3]=='+') {//mov dword [rsp+4],0x3ff3c0ca - const char ML2[3]={0xc7,0x44,0x24}; + const unsigned char ML2[3]={0xc7,0x44,0x24}; ml.insert(ml.end(),ML2,ML2+sizeof(ML2)); std::string::size_type pos=inst1bis.find_first_of(']'); std::string inst1_1=inst1bis.substr(4,pos-4-1); @@ -239,21 +239,21 @@ void INTERP_KERNEL::AsmX86::convertPush(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML1[2]={0xde,0xc1}; + const unsigned char ML1[2]={0xde,0xc1}; ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); } void INTERP_KERNEL::AsmX86::convertFsubp(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML1[2]={0xde,0xe9}; + const unsigned char ML1[2]={0xde,0xe9}; ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); } void INTERP_KERNEL::AsmX86::convertFmulp(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML1[2]={0xde,0xc9}; + const unsigned char ML1[2]={0xde,0xc9}; ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); } void INTERP_KERNEL::AsmX86::convertFdivp(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML1[2]={0xde,0xf9}; + const unsigned char ML1[2]={0xde,0xf9}; ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); } void INTERP_KERNEL::AsmX86::convertFcos(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML[2]={0xd9,0xff}; + const unsigned char ML[2]={0xd9,0xff}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } void INTERP_KERNEL::AsmX86::convertFsin(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML[2]={0xd9,0xfe}; + const unsigned char ML[2]={0xd9,0xfe}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } void INTERP_KERNEL::AsmX86::convertFabs(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML[2]={0xd9,0xe1}; + const unsigned char ML[2]={0xd9,0xe1}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } void INTERP_KERNEL::AsmX86::convertFchs(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML[2]={0xd9,0xe0}; + const unsigned char ML[2]={0xd9,0xe0}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } void INTERP_KERNEL::AsmX86::convertFsqrt(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML[2]={0xd9,0xfa}; + const unsigned char ML[2]={0xd9,0xfa}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } @@ -392,7 +392,7 @@ void INTERP_KERNEL::AsmX86::convertSub(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML[1]={0xc3}; + const unsigned char ML[1]={0xc3}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } void INTERP_KERNEL::AsmX86::convertLeave(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { - const char ML[1]={0xc9}; + const unsigned char ML[1]={0xc9}; ml.insert(ml.end(),ML,ML+sizeof(ML)); } void INTERP_KERNEL::AsmX86::convertMovsd(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { const char ASM1[]="[rsp],xmm0"; - const char ML1[5]={0xf2,0x0f,0x11,0x04,0x24}; + const unsigned char ML1[5]={0xf2,0x0f,0x11,0x04,0x24}; if(inst==ASM1) { ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); return ; } const char ASM2[]="xmm0,[rsp]"; - const char ML2[5]={0xf2,0x0f,0x10,0x04,0x24}; + const unsigned char ML2[5]={0xf2,0x0f,0x10,0x04,0x24}; if(inst==ASM2) { ml.insert(ml.end(),ML2,ML2+sizeof(ML2)); @@ -461,7 +461,7 @@ void INTERP_KERNEL::AsmX86::convertMovsd(const std::string& inst, std::vector& ml) throw(INTERP_KERNEL::Exception) { const char ASM1[]="qword [rsp]"; - const char ML1[3]={0xdd,0x14,0x24}; + const unsigned char ML1[3]={0xdd,0x14,0x24}; if(inst==ASM1) { ml.insert(ml.end(),ML1,ML1+sizeof(ML1)); diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx index 0617f477e..7e917274d 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx @@ -816,7 +816,6 @@ void ExprParser::fillValuesInExpr(std::vector& valuesInExpr) throw(INTER { const char FIGURES[]="0123456789"; const std::string other("+-*^/(<>,"); - double val=std::numeric_limits::max(); std::size_t lgth=_expr.length(); int id=0,delta; for(std::size_t pos=0;pos!=std::string::npos;id++)