Ignore:
Timestamp:
01/23/17 11:43:59 (4 years ago)
Author:
ymipsl
Message:

Include patch proposed by M. Dunphy fixing Warning when memory pointed by a void* is deleted.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/client.cpp

    r925 r1032  
    176176 
    177177        int messageSize=msg.size() ; 
    178         void * buff = new char[messageSize] ; 
    179         CBufferOut buffer(buff,messageSize) ; 
     178        char * buff = new char[messageSize] ; 
     179        CBufferOut buffer((void*)buff,messageSize) ; 
    180180        buffer<<msg ; 
    181181 
    182         MPI_Send(buff,buffer.count(),MPI_CHAR,serverLeader,1,CXios::globalComm) ; 
     182        MPI_Send((void*)buff,buffer.count(),MPI_CHAR,serverLeader,1,CXios::globalComm) ; 
    183183        delete [] buff ; 
    184184 
Note: See TracChangeset for help on using the changeset viewer.