From f7ac2b09ccf0dac73e49c8da279335f5501ce35f Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Sat, 23 Mar 2019 09:36:36 -0600 Subject: [PATCH] fixed warning in test_darray_multi.c --- tests/cunit/test_darray_multi.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/cunit/test_darray_multi.c b/tests/cunit/test_darray_multi.c index 5827c6760c2..5f8f93c5163 100644 --- a/tests/cunit/test_darray_multi.c +++ b/tests/cunit/test_darray_multi.c @@ -84,7 +84,6 @@ int test_darray(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank int ncid2; /* The ncid of the re-opened netCDF file. */ int varid[NVAR]; /* The IDs of the netCDF varables. */ int other_varid; /* The IDs of a var of different type. */ - int wrong_varid[NVAR]; /* These will not work. */ PIO_Offset arraylen = 4; /* Amount of data from each task. */ void *fillvalue; /* Pointer to fill value. */ void *test_data; /* Pointer to test data we will write. */ @@ -279,14 +278,6 @@ int test_darray(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank int frame[NVAR] = {0, 0, 0}; int flushtodisk = test_multi; - /* This will not work, because we mix var types. */ - wrong_varid[0] = varid[0]; - wrong_varid[1] = varid[1]; - wrong_varid[0] = other_varid; -// if (PIOc_write_darray_multi(ncid, wrong_varid, ioid, NVAR, arraylen, test_data, frame, -// fillvalue, flushtodisk) != PIO_EINVAL) -// ERR(ERR_WRONG); - /* Write the data with the _multi function. */ if ((ret = PIOc_write_darray_multi(ncid, varid, ioid, NVAR, arraylen, test_data, frame, fillvalue, flushtodisk)))