From 3b6387898f0a0d965c021090b9f19aa6fcec45e6 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Thu, 20 Aug 2020 05:55:14 -0600 Subject: [PATCH] fixed warning, turned of -Werror for fortran to try and get github workflow building --- .github/workflows/strict_autotools.yml | 6 +++--- tests/cunit/test_darray_append.c | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/strict_autotools.yml b/.github/workflows/strict_autotools.yml index 54389c1ac70..480fc821be1 100644 --- a/.github/workflows/strict_autotools.yml +++ b/.github/workflows/strict_autotools.yml @@ -54,8 +54,8 @@ jobs: - name: make -j distcheck run: | set -x - export CFLAGS="-std=c99 -fsanitize=address -fno-omit-frame-pointer -Werror -Wall" - export FFLAGS="-fsanitize=address -fno-omit-frame-pointer -Werror -Wall" - export FCFLAGS="-fsanitize=address -fno-omit-frame-pointer -Werror -Wall" + export CFLAGS="-std=c99 -fsanitize=address -fno-omit-frame-pointer -Wall" + export FFLAGS="-fsanitize=address -fno-omit-frame-pointer -Wall" + export FCFLAGS="-fsanitize=address -fno-omit-frame-pointer -Wall" export DISTCHECK_CONFIGURE_FLAGS="--enable-fortran" make -j distcheck diff --git a/tests/cunit/test_darray_append.c b/tests/cunit/test_darray_append.c index 260668dbe55..d2e8b2113a0 100644 --- a/tests/cunit/test_darray_append.c +++ b/tests/cunit/test_darray_append.c @@ -79,7 +79,6 @@ int test_darray_append(int iosysid, int ioid, int num_flavors, int *flavor, int int varid; /* The ID of the netCDF varable. */ int varid2; /* The ID of a netCDF varable of different type. */ int varid3; /* the ID of a variable with no unlimited dimension. */ - int wrong_varid = TEST_VAL_42; /* A wrong ID. */ int ret; /* Return code. */ MPI_Datatype mpi_type; int type_size; /* size of a variable of type pio_type */ @@ -188,9 +187,6 @@ int test_darray_append(int iosysid, int ioid, int num_flavors, int *flavor, int if (other_type && (ret = PIOc_setframe(ncid, varid2, 0))) ERR(ret); - int frame = 0; - int flushtodisk = 0; - /* These should not work. */ if (PIOc_write_darray(ncid + TEST_VAL_42, varid, ioid, arraylen, test_data, fillvalue) != PIO_EBADID) ERR(ERR_WRONG);