Skip to content

Commit

Permalink
fixed warning, turned of -Werror for fortran to try and get github wo…
Browse files Browse the repository at this point in the history
…rkflow building
  • Loading branch information
edwardhartnett committed Aug 20, 2020
1 parent fb4052a commit 3b63878
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/strict_autotools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions tests/cunit/test_darray_append.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3b63878

Please sign in to comment.