Commit 861bd0fb authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Align VLA parameters.

* GCC 11 now warns about this.
parent 6b58160f
......@@ -108,12 +108,11 @@ idxstripes_get_indices_at_positions(Xt_idxlist idxlist, const int *positions,
int num, Xt_int *index,
Xt_int undef_idx);
static int
idxstripes_get_pos_exts_of_index_stripes(Xt_idxlist idxlist,
int num_stripes,
const struct Xt_stripe *stripes,
int *num_ext,
struct Xt_pos_ext **pos_ext,
int single_match_only);
idxstripes_get_pos_exts_of_index_stripes(
Xt_idxlist idxlist,
int num_stripes, const struct Xt_stripe stripes[num_stripes],
int *num_ext, struct Xt_pos_ext **pos_ext,
int single_match_only);
static int
idxstripes_get_position_of_index(Xt_idxlist idxlist, Xt_int index,
......
......@@ -80,7 +80,7 @@ struct Xt_request_msgs_ {
MPI_Request requests[];
};
Xt_request xt_request_msgs_new(int n, const MPI_Request *requests,
Xt_request xt_request_msgs_new(int n, const MPI_Request requests[n],
MPI_Comm comm) {
assert(n >= 0);
......
......@@ -83,12 +83,12 @@ struct Xt_request_msgs_packed_ {
};
Xt_request xt_request_msgs_packed_new(int n_requests,
const MPI_Request *requests,
const MPI_Request requests[n_requests],
MPI_Comm comm, int n_packed,
int n_tmp_buffers,
const MPI_Datatype * datatypes,
void ** packed_data,
void ** tmp_buffers,
const MPI_Datatype datatypes[n_packed],
void *packed_data[n_packed],
void *tmp_buffers[n_tmp_buffers],
void * unpacked_data) {
assert(n_requests >= 0 && n_packed >= 0 && n_tmp_buffers >= 0);
......
......@@ -174,7 +174,7 @@ xt_xmap_dist_dir_send_intersections(
size_t send_size_asize, size_t send_size_entry,
int tag, MPI_Comm comm, int rank_lim,
MPI_Request *restrict requests,
const int (*send_size)[send_size_asize])
const int send_size[rank_lim][send_size_asize])
{
size_t offset = 0;
size_t reqOfs = 0;
......
......@@ -267,7 +267,8 @@ check_stripes(struct Xt_stripe const * stripes, int num_stripes,
}
void
check_offsets(size_t num_offsets, const int *offsets_a, const int *offsets_b)
check_offsets(size_t num_offsets, const int offsets_a[num_offsets],
const int offsets_b[num_offsets])
{
bool mismatch = false;
for(size_t i=0; i<num_offsets; i++)
......
......@@ -98,8 +98,8 @@ void
check_redist_(Xt_redist redist,
int sync_mode,
int num_redists,
const void *src[],
size_t dst_num_elems, void *dst[],
const void *src[num_redists],
size_t dst_num_elems, void *dst[num_redists],
void *dst_buf_base,
prepare_dst dst_prep,
const void *dst_prep_info,
......
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