Skip to content

Commit 5dd19e4

Browse files
authored
Merge pull request #2263 from jjhursey/topic/v2.x-win-pgi
Compiler fixes for `win.c`
2 parents 6def8c2 + 4d67de7 commit 5dd19e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ompi/win/win.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ opal_pointer_array_t ompi_mpi_windows = {{0}};
4646
ompi_predefined_win_t ompi_mpi_win_null = {{{0}}};
4747
ompi_predefined_win_t *ompi_mpi_win_null_addr = &ompi_mpi_win_null;
4848
mca_base_var_enum_t *ompi_win_accumulate_ops = NULL;
49-
mca_base_var_enum_t *ompi_win_accumulate_order = NULL;
49+
mca_base_var_enum_flag_t *ompi_win_accumulate_order = NULL;
5050

5151
static mca_base_var_enum_value_t accumulate_ops_values[] = {
5252
{.value = OMPI_WIN_ACCUMULATE_OPS_SAME_OP_NO_OP, .string = "same_op_no_op",},
@@ -61,7 +61,7 @@ static mca_base_var_enum_value_flag_t accumulate_order_flags[] = {
6161
{.flag = OMPI_WIN_ACC_ORDER_WAR, .string = "war", .conflicting_flag = OMPI_WIN_ACC_ORDER_NONE},
6262
{.flag = OMPI_WIN_ACC_ORDER_RAW, .string = "raw", .conflicting_flag = OMPI_WIN_ACC_ORDER_NONE},
6363
{.flag = OMPI_WIN_ACC_ORDER_WAW, .string = "waw", .conflicting_flag = OMPI_WIN_ACC_ORDER_NONE},
64-
{},
64+
{0},
6565
};
6666

6767
static void ompi_win_construct(ompi_win_t *win);
@@ -161,7 +161,7 @@ static int alloc_window(struct ompi_communicator_t *comm, ompi_info_t *info, int
161161
ret = ompi_info_get_value_enum (info, "accumulate_order", &acc_order,
162162
OMPI_WIN_ACC_ORDER_RAR | OMPI_WIN_ACC_ORDER_WAR |
163163
OMPI_WIN_ACC_ORDER_RAW | OMPI_WIN_ACC_ORDER_WAW,
164-
ompi_win_accumulate_order, &flag);
164+
&(ompi_win_accumulate_order->super), &flag);
165165
if (OMPI_SUCCESS != ret) {
166166
OBJ_RELEASE(win);
167167
return ret;

ompi/win/win.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ enum ompi_win_accumulate_order_flags_t {
6868
};
6969

7070
OMPI_DECLSPEC extern mca_base_var_enum_t *ompi_win_accumulate_ops;
71-
OMPI_DECLSPEC extern mca_base_var_enum_t *ompi_win_accumulate_order;
71+
OMPI_DECLSPEC extern mca_base_var_enum_flag_t *ompi_win_accumulate_order;
7272

7373
OMPI_DECLSPEC extern opal_pointer_array_t ompi_mpi_windows;
7474

0 commit comments

Comments
 (0)