Skip to content

Commit

Permalink
fix for codacy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 28, 2019
1 parent 5a9c0ef commit 55165df
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/cunit/test_pioc_putget.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,15 +777,10 @@ int test_read_att(int ncid, int *varid, int flavor)
char text_in[ATT_LEN];
signed char byte_array_in[ATT_LEN];
short short_array_in[ATT_LEN];
unsigned char ubyte_array_in[ATT_LEN];
int int_array_in[ATT_LEN];
long int long_array_in[ATT_LEN];
float float_array_in[ATT_LEN];
double double_array_in[ATT_LEN];
unsigned short ushort_array_in[ATT_LEN];
unsigned int uint_array_in[ATT_LEN];
long long int64_array_in[ATT_LEN];
unsigned long long uint64_array_in[ATT_LEN];
int x;
int ret;

Expand Down Expand Up @@ -823,6 +818,12 @@ int test_read_att(int ncid, int *varid, int flavor)

if (flavor == PIO_IOTYPE_NETCDF4C || flavor == PIO_IOTYPE_NETCDF4P)
{
unsigned char ubyte_array_in[ATT_LEN];
unsigned short ushort_array_in[ATT_LEN];
unsigned int uint_array_in[ATT_LEN];
long long int64_array_in[ATT_LEN];
unsigned long long uint64_array_in[ATT_LEN];

if ((ret = PIOc_get_att_uchar(ncid, varid[7], UCHAR_ATT_NAME, ubyte_array_in)))
return ret;
if ((ret = PIOc_get_att_ushort(ncid, varid[8], USHORT_ATT_NAME, ushort_array_in)))
Expand Down

0 comments on commit 55165df

Please sign in to comment.