Commit 5fd8fc67 authored by Michael Blocksome's avatar Michael Blocksome Committed by Pavan Balaji
Browse files

gcc 4.4.6 warning cleanup.


Signed-off-by: default avatarSu Huang <suhuang@us.ibm.com>
parent 4fc5c205
......@@ -150,9 +150,9 @@ int MPID_Compare_and_swap(const void *origin_addr, const void *compare_addr,
MPIU_Free(req);
}
else {
req->buffer = origin_addr + req->origin.dt.true_lb;
req->buffer = (void *) ((uintptr_t) origin_addr + req->origin.dt.true_lb);
req->user_buffer = result_addr + req->origin.dt.true_lb;
req->compare_buffer = compare_addr + req->origin.dt.true_lb;
req->compare_buffer = (void *) ((uintptr_t) compare_addr + req->origin.dt.true_lb);
pami_result_t rc;
pami_task_t task = MPID_VCR_GET_LPID(win->comm_ptr->vcr, target_rank);
......
......@@ -342,7 +342,7 @@ int MPID_Fetch_and_op(const void *origin_addr, void *result_addr,
req->op = op;
req->pami_datatype = pami_type;
/* MPI_Fetch_and_op only supports predefined datatype */
req->buffer = origin_addr + req->origin.dt.true_lb;
req->buffer = (void *) ((uintptr_t) origin_addr + req->origin.dt.true_lb);
req->user_buffer = result_addr + req->origin.dt.true_lb;
pami_result_t rc;
......
......@@ -163,7 +163,7 @@ MPID_Rget(void *origin_addr,
#undef FCNAME
#define FCNAME MPIU_QUOTE(FUNCNAME)
int
MPID_Raccumulate(const void *origin_addr,
MPID_Raccumulate(const void *origin_addr,
int origin_count,
MPI_Datatype origin_datatype,
int target_rank,
......
......@@ -207,7 +207,7 @@ typedef struct
/** \todo make sure that the extra fields are removed */
typedef struct _mpidi_win_request
typedef struct MPIDI_Win_request
{
MPID_Win *win;
MPIDI_Win_requesttype_t type;
......@@ -255,7 +255,7 @@ typedef struct _mpidi_win_request
void *compare_buffer; /* anchor of compare buffer for compare and swap */
uint32_t buffer_free;
void *buffer;
struct _mpidi_win_request *next;
struct MPIDI_Win_request *next;
MPI_Op op;
int result_num_contig;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment