• Antonio J. Pena's avatar
    Fix warnings about possible uninitialized accesses · d8b8eb6f
    Antonio J. Pena authored
    
    
    Fixes compiler warnings related to the possible use of uninitialized memory in
    mpiu_chkpmem_stk_[0] and mpir_sched_chkpmem_stk_[0]. A couple of examples:
    
    src/mpid/ch3/src/ch3u_rma_sync.c: In function 'MPIDI_CH3I_Recv_rma_msg':
    src/mpid/ch3/src/ch3u_rma_sync.c:1265:5: warning: 'mpiu_chkpmem_stk_[0]'
    may be used uninitialized in this function [-Wmaybe-uninitialized]
    
    src/mpi/coll/iallgather.c: In function 'MPIR_Iallgather_bruck':
    src/mpi/coll/iallgather.c:329:5: warning: 'mpir_sched_chkpmem_stk_[0]' may
    be used uninitialized in this function [-Wmaybe-uninitialized]
    
    While the code seems correct, this patch avoids the warning.
    
    See ticket #1966
    
    Signed-off-by: default avatarWesley Bland <wbland@mcs.anl.gov>
    d8b8eb6f