@@ -46,7 +46,7 @@ opal_pointer_array_t ompi_mpi_windows = {{0}};
4646ompi_predefined_win_t  ompi_mpi_win_null  =  {{{0 }}};
4747ompi_predefined_win_t  * ompi_mpi_win_null_addr  =  & ompi_mpi_win_null ;
4848mca_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
5151static  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
6767static  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 ;
0 commit comments