summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2024-03-10 23:17:49 (GMT)
committerGitHub <noreply@github.com>2024-03-10 23:17:49 (GMT)
commit9bc6c201666aa7fcd7937db7241d4074b67824c9 (patch)
treeef52725207dc59d5723e99195d90cab7ac8a1a53
parent7403f2075781dbaf103b4d90f60695b892bca29f (diff)
downloadhdf5-9bc6c201666aa7fcd7937db7241d4074b67824c9.zip
hdf5-9bc6c201666aa7fcd7937db7241d4074b67824c9.tar.gz
hdf5-9bc6c201666aa7fcd7937db7241d4074b67824c9.tar.bz2
Remove lint comments (#4107)
-rw-r--r--src/H5B.c2
-rw-r--r--src/H5Dchunk.c5
-rw-r--r--src/H5Dint.c22
-rw-r--r--src/H5Dlayout.c2
-rw-r--r--src/H5E.c27
-rw-r--r--src/H5Edeprec.c12
-rw-r--r--src/H5Eint.c6
-rw-r--r--src/H5FL.c23
-rw-r--r--src/H5Tfields.c4
-rw-r--r--src/H5Tvlen.c8
-rw-r--r--src/H5VM.c13
-rw-r--r--src/H5Zshuffle.c4
12 files changed, 51 insertions, 77 deletions
diff --git a/src/H5B.c b/src/H5B.c
index 6032943..041acec 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -250,7 +250,7 @@ done:
} /* end if */
FUNC_LEAVE_NOAPI(ret_value)
-} /* end H5B_create() */ /*lint !e818 Can't make udata a pointer to const */
+} /* end H5B_create() */
/*-------------------------------------------------------------------------
* Function: H5B_find
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c
index 05d9fe6..173f390 100644
--- a/src/H5Dchunk.c
+++ b/src/H5Dchunk.c
@@ -1976,9 +1976,8 @@ H5D__create_piece_file_map_hyper(H5D_dset_io_info_t *dinfo, H5D_io_info_t *io_in
do {
/* Reset current dimension's location to 0 */
scaled[curr_dim] = start_scaled[curr_dim];
- coords[curr_dim] =
- start_coords[curr_dim]; /*lint !e771 The start_coords will always be initialized */
- end[curr_dim] = (coords[curr_dim] + fm->chunk_dim[curr_dim]) - 1;
+ coords[curr_dim] = start_coords[curr_dim];
+ end[curr_dim] = (coords[curr_dim] + fm->chunk_dim[curr_dim]) - 1;
/* Decrement current dimension */
curr_dim--;
diff --git a/src/H5Dint.c b/src/H5Dint.c
index a267468..2e835a5 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -1787,8 +1787,8 @@ H5D__open_oid(H5D_t *dataset, hid_t dapl_id)
case H5D_NLAYOUTS:
default:
HGOTO_ERROR(H5E_DATASET, H5E_UNSUPPORTED, FAIL, "not implemented yet");
- } /* end switch */ /*lint !e788 All appropriate cases are covered */
- } /* end else */
+ } /* end switch */
+ } /* end else */
/* If "old" fill value size is 0 (undefined), map it to -1 */
if (fill_prop->size == 0)
@@ -1972,8 +1972,8 @@ H5D_close(H5D_t *dataset)
assert("not implemented yet" && 0);
#ifdef NDEBUG
HGOTO_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout");
-#endif /* NDEBUG */
- } /* end switch */ /*lint !e788 All appropriate cases are covered */
+#endif
+ } /* end switch */
/* Destroy any cached layout information for the dataset */
if (dataset->shared->layout.ops->dest && (dataset->shared->layout.ops->dest)(dataset) < 0)
@@ -2136,8 +2136,8 @@ H5D_mult_refresh_close(hid_t dset_id)
assert("not implemented yet" && 0);
#ifdef NDEBUG
HGOTO_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout");
-#endif /* NDEBUG */
- } /* end switch */ /*lint !e788 All appropriate cases are covered */
+#endif
+ } /* end switch */
/* Destroy any cached layout information for the dataset */
if (dataset->shared->layout.ops->dest && (dataset->shared->layout.ops->dest)(dataset) < 0)
@@ -2346,8 +2346,8 @@ H5D__alloc_storage(H5D_t *dset, H5D_time_alloc_t time_alloc, bool full_overwrite
assert("not implemented yet" && 0);
#ifdef NDEBUG
HGOTO_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout");
-#endif /* NDEBUG */
- } /* end switch */ /*lint !e788 All appropriate cases are covered */
+#endif
+ } /* end switch */
/* Check if we need to initialize the space */
if (must_init_space) {
@@ -2467,8 +2467,8 @@ H5D__init_storage(H5D_t *dset, bool full_overwrite, hsize_t old_dim[])
assert("not implemented yet" && 0);
#ifdef NDEBUG
HGOTO_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout");
-#endif /* NDEBUG */
- } /* end switch */ /*lint !e788 All appropriate cases are covered */
+#endif
+ } /* end switch */
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -2523,7 +2523,7 @@ H5D__get_storage_size(const H5D_t *dset, hsize_t *storage_size)
case H5D_NLAYOUTS:
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset type");
- } /*lint !e788 All appropriate cases are covered */
+ }
done:
FUNC_LEAVE_NOAPI_TAG(ret_value)
diff --git a/src/H5Dlayout.c b/src/H5Dlayout.c
index 1324faf..249bfcc 100644
--- a/src/H5Dlayout.c
+++ b/src/H5Dlayout.c
@@ -136,7 +136,7 @@ H5D__layout_set_io_ops(const H5D_t *dataset)
case H5D_NLAYOUTS:
default:
HGOTO_ERROR(H5E_DATASET, H5E_UNSUPPORTED, FAIL, "unknown storage method");
- } /* end switch */ /*lint !e788 All appropriate cases are covered */
+ } /* end switch */
done:
FUNC_LEAVE_NOAPI(ret_value)
diff --git a/src/H5E.c b/src/H5E.c
index 6593975..36f0704 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -876,8 +876,7 @@ H5E__get_current_stack(void)
FUNC_ENTER_PACKAGE
/* Get a pointer to the current error stack */
- if (NULL == (current_stack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean'
- in non-threaded case */
+ if (NULL == (current_stack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, NULL, "can't get current error stack");
/* Allocate a new error stack */
@@ -992,8 +991,7 @@ H5E__set_current_stack(H5E_t *estack)
assert(estack);
/* Get a pointer to the current error stack */
- if (NULL == (current_stack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean'
- in non-threaded case */
+ if (NULL == (current_stack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
/* Empty current error stack */
@@ -1114,8 +1112,7 @@ H5Eget_num(hid_t error_stack_id)
/* Need to check for errors */
if (error_stack_id == H5E_DEFAULT) {
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, (-1), "can't get current error stack");
} /* end if */
else {
@@ -1176,8 +1173,7 @@ H5Epop(hid_t err_stack, size_t count)
/* Need to check for errors */
if (err_stack == H5E_DEFAULT) {
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
} /* end if */
else {
@@ -1360,8 +1356,7 @@ H5E__print2(hid_t err_stack, FILE *stream)
/* Need to check for errors */
if (err_stack == H5E_DEFAULT) {
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
} /* end if */
else {
@@ -1403,8 +1398,7 @@ H5Ewalk2(hid_t err_stack, H5E_direction_t direction, H5E_walk2_t stack_func, voi
/* Need to check for errors */
if (err_stack == H5E_DEFAULT) {
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
} /* end if */
else {
@@ -1449,8 +1443,7 @@ H5Eget_auto2(hid_t estack_id, H5E_auto2_t *func /*out*/, void **client_data /*ou
H5TRACE3("e", "i*EA**x", estack_id, func, client_data);
if (estack_id == H5E_DEFAULT) {
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
} /* end if */
else {
@@ -1509,8 +1502,7 @@ H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void *client_data)
H5TRACE3("e", "iEA*x", estack_id, func, client_data);
if (estack_id == H5E_DEFAULT) {
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
} /* end if */
else {
@@ -1568,8 +1560,7 @@ H5Eauto_is_v2(hid_t estack_id, unsigned *is_stack)
H5TRACE2("e", "i*Iu", estack_id, is_stack);
if (estack_id == H5E_DEFAULT) {
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
} /* end if */
else {
diff --git a/src/H5Edeprec.c b/src/H5Edeprec.c
index c5e8a8d..471630c 100644
--- a/src/H5Edeprec.c
+++ b/src/H5Edeprec.c
@@ -248,8 +248,7 @@ H5Eprint1(FILE *stream)
FUNC_ENTER_API_NOCLEAR(FAIL)
/*NO TRACE*/
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
/* Print error stack */
@@ -282,8 +281,7 @@ H5Ewalk1(H5E_direction_t direction, H5E_walk1_t func, void *client_data)
FUNC_ENTER_API_NOCLEAR(FAIL)
/*NO TRACE*/
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
/* Walk the error stack */
@@ -320,8 +318,7 @@ H5Eget_auto1(H5E_auto1_t *func /*out*/, void **client_data /*out*/)
H5TRACE2("e", "*Ea**x", func, client_data);
/* Retrieve default error stack */
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
/* Get the automatic error reporting information */
@@ -370,8 +367,7 @@ H5Eset_auto1(H5E_auto1_t func, void *client_data)
FUNC_ENTER_API_NOCLEAR(FAIL)
H5TRACE2("e", "Ea*x", func, client_data);
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
/* Get the automatic error reporting information */
diff --git a/src/H5Eint.c b/src/H5Eint.c
index 17d8fdd..a4ba5b2 100644
--- a/src/H5Eint.c
+++ b/src/H5Eint.c
@@ -709,8 +709,7 @@ H5E__push_stack(H5E_t *estack, const char *file, const char *func, unsigned line
/* Check for 'default' error stack */
if (estack == NULL)
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_DONE(FAIL);
/*
@@ -827,8 +826,7 @@ H5E_clear_stack(H5E_t *estack)
/* Check for 'default' error stack */
if (estack == NULL)
- if (NULL == (estack = H5E__get_my_stack())) /*lint !e506 !e774 Make lint 'constant value Boolean' in
- non-threaded case */
+ if (NULL == (estack = H5E__get_my_stack()))
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack");
/* Empty the error stack */
diff --git a/src/H5FL.c b/src/H5FL.c
index 5dd4ed3..3415996 100644
--- a/src/H5FL.c
+++ b/src/H5FL.c
@@ -984,10 +984,8 @@ H5FL_blk_free(H5FL_blk_head_t *head, void *block)
#endif /* H5FL_TRACK */
/* Get the pointer to the native block info header in front of the native block to free */
- temp = (H5FL_blk_list_t *)((
- void *)((unsigned char *)block -
- (sizeof(H5FL_blk_list_t) +
- H5FL_TRACK_SIZE))); /*lint !e826 Pointer-to-pointer cast is appropriate here */
+ temp =
+ (H5FL_blk_list_t *)((void *)((unsigned char *)block - (sizeof(H5FL_blk_list_t) + H5FL_TRACK_SIZE)));
/* Save the block's size for later */
free_size = temp->size;
@@ -1058,10 +1056,8 @@ H5FL_blk_realloc(H5FL_blk_head_t *head, void *block, size_t new_size H5FL_TRACK_
H5FL_blk_list_t *temp; /* Temp. ptr to the new block node allocated */
/* Get the pointer to the chunk info header in front of the chunk to free */
- temp = (H5FL_blk_list_t *)((
- void *)((unsigned char *)block -
- (sizeof(H5FL_blk_list_t) +
- H5FL_TRACK_SIZE))); /*lint !e826 Pointer-to-pointer cast is appropriate here */
+ temp = (H5FL_blk_list_t *)((void *)((unsigned char *)block -
+ (sizeof(H5FL_blk_list_t) + H5FL_TRACK_SIZE)));
/* check if we are actually changing the size of the buffer */
if (new_size != temp->size) {
@@ -1407,10 +1403,7 @@ H5FL_arr_free(H5FL_arr_head_t *head, void *obj)
#endif
/* Get the pointer to the info header in front of the block to free */
- temp = (H5FL_arr_list_t *)((
- void *)((unsigned char *)obj -
- (sizeof(H5FL_arr_list_t) +
- H5FL_TRACK_SIZE))); /*lint !e826 Pointer-to-pointer cast is appropriate here */
+ temp = (H5FL_arr_list_t *)((void *)((unsigned char *)obj - (sizeof(H5FL_arr_list_t) + H5FL_TRACK_SIZE)));
/* Get the number of elements */
free_nelem = temp->nelem;
@@ -1607,10 +1600,8 @@ H5FL_arr_realloc(H5FL_arr_head_t *head, void *obj, size_t new_elem H5FL_TRACK_PA
assert((int)new_elem <= head->maxelem);
/* Get the pointer to the info header in front of the block to free */
- temp = (H5FL_arr_list_t *)((
- void *)((unsigned char *)obj -
- (sizeof(H5FL_arr_list_t) +
- H5FL_TRACK_SIZE))); /*lint !e826 Pointer-to-pointer cast is appropriate here */
+ temp =
+ (H5FL_arr_list_t *)((void *)((unsigned char *)obj - (sizeof(H5FL_arr_list_t) + H5FL_TRACK_SIZE)));
/* Check if the size is really changing */
if (temp->nelem != new_elem) {
diff --git a/src/H5Tfields.c b/src/H5Tfields.c
index dc839ba..55289f6 100644
--- a/src/H5Tfields.c
+++ b/src/H5Tfields.c
@@ -177,7 +177,7 @@ H5T__get_member_name(H5T_t const *dt, unsigned membno)
case H5T_NCLASSES:
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "operation not supported for type class");
- } /*lint !e788 All appropriate cases are covered */
+ }
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -237,7 +237,7 @@ H5Tget_member_index(hid_t type_id, const char *name)
case H5T_NCLASSES:
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "operation not supported for this type");
- } /*lint !e788 All appropriate cases are covered */
+ }
done:
FUNC_LEAVE_API(ret_value)
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index 651ff8f..ff822b2 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -334,7 +334,7 @@ H5T__vlen_set_loc(H5T_t *dt, H5VL_object_t *file, H5T_loc_t loc)
/* MAXLOC is invalid */
default:
HGOTO_ERROR(H5E_DATATYPE, H5E_BADRANGE, FAIL, "invalid VL datatype location");
- } /* end switch */ /*lint !e788 All appropriate cases are covered */
+ } /* end switch */
/* Indicate that the location changed */
ret_value = true;
@@ -622,7 +622,7 @@ H5T__vlen_mem_str_setnull(H5VL_object_t H5_ATTR_UNUSED *file, void *_vl, void H5
/* Set pointer in user's buffer with memcpy, to avoid alignment issues */
H5MM_memcpy(_vl, &t, sizeof(char *));
- FUNC_LEAVE_NOAPI(SUCCEED) /*lint !e429 The pointer in 't' has been copied */
+ FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5T__vlen_mem_str_setnull() */
/*-------------------------------------------------------------------------
@@ -695,7 +695,7 @@ H5T__vlen_mem_str_write(H5VL_object_t H5_ATTR_UNUSED *file, const H5T_vlen_alloc
H5MM_memcpy(_vl, &t, sizeof(char *));
done:
- FUNC_LEAVE_NOAPI(ret_value) /*lint !e429 The pointer in 't' has been copied */
+ FUNC_LEAVE_NOAPI(ret_value)
} /* end H5T__vlen_mem_str_write() */
/*-------------------------------------------------------------------------
@@ -1035,7 +1035,7 @@ H5T__vlen_reclaim(void *elem, const H5T_t *dt, H5T_vlen_alloc_info_t *alloc_info
HGOTO_ERROR(H5E_DATATYPE, H5E_BADRANGE, FAIL, "invalid VL datatype class");
break;
- } /* end switch */ /*lint !e788 All appropriate cases are covered */
+ } /* end switch */
done:
FUNC_LEAVE_NOAPI(ret_value)
diff --git a/src/H5VM.c b/src/H5VM.c
index 6bdf079..e5d533e 100644
--- a/src/H5VM.c
+++ b/src/H5VM.c
@@ -580,7 +580,7 @@ H5VM_stride_fill(unsigned n, hsize_t elmt_size, const hsize_t *size, const hsize
for (i = 0; i < nelmts; i++) {
/* Copy an element */
H5_CHECK_OVERFLOW(elmt_size, hsize_t, size_t);
- memset(dst, (int)fill_value, (size_t)elmt_size); /*lint !e671 The elmt_size will be OK */
+ memset(dst, (int)fill_value, (size_t)elmt_size);
/* Decrement indices and advance pointer */
for (j = (int)(n - 1), carry = true; j >= 0 && carry; --j) {
@@ -637,7 +637,7 @@ H5VM_stride_copy(unsigned n, hsize_t elmt_size, const hsize_t *size, const hsize
/* Copy an element */
H5_CHECK_OVERFLOW(elmt_size, hsize_t, size_t);
- H5MM_memcpy(dst, src, (size_t)elmt_size); /*lint !e671 The elmt_size will be OK */
+ H5MM_memcpy(dst, src, (size_t)elmt_size);
/* Decrement indices and advance pointers */
for (j = (int)(n - 1), carry = true; j >= 0 && carry; --j) {
@@ -655,7 +655,7 @@ H5VM_stride_copy(unsigned n, hsize_t elmt_size, const hsize_t *size, const hsize
}
else {
H5_CHECK_OVERFLOW(elmt_size, hsize_t, size_t);
- H5MM_memcpy(dst, src, (size_t)elmt_size); /*lint !e671 The elmt_size will be OK */
+ H5MM_memcpy(dst, src, (size_t)elmt_size);
}
FUNC_LEAVE_NOAPI(SUCCEED)
@@ -700,7 +700,7 @@ H5VM_stride_copy_s(unsigned n, hsize_t elmt_size, const hsize_t *size, const hss
/* Copy an element */
H5_CHECK_OVERFLOW(elmt_size, hsize_t, size_t);
- H5MM_memcpy(dst, src, (size_t)elmt_size); /*lint !e671 The elmt_size will be OK */
+ H5MM_memcpy(dst, src, (size_t)elmt_size);
/* Decrement indices and advance pointers */
for (j = (int)(n - 1), carry = true; j >= 0 && carry; --j) {
@@ -718,7 +718,7 @@ H5VM_stride_copy_s(unsigned n, hsize_t elmt_size, const hsize_t *size, const hss
}
else {
H5_CHECK_OVERFLOW(elmt_size, hsize_t, size_t);
- H5MM_memcpy(dst, src, (size_t)elmt_size); /*lint !e671 The elmt_size will be OK */
+ H5MM_memcpy(dst, src, (size_t)elmt_size);
}
FUNC_LEAVE_NOAPI(SUCCEED)
@@ -1099,8 +1099,7 @@ H5VM_chunk_index_scaled(unsigned ndims, const hsize_t *coord, const uint32_t *ch
scaled[u] = coord[u] / chunk[u];
/* Compute the chunk index */
- chunk_idx = H5VM_array_offset_pre(ndims, down_nchunks,
- scaled); /*lint !e772 scaled_coord will always be initialized */
+ chunk_idx = H5VM_array_offset_pre(ndims, down_nchunks, scaled);
FUNC_LEAVE_NOAPI(chunk_idx)
} /* end H5VM_chunk_index_scaled() */
diff --git a/src/H5Zshuffle.c b/src/H5Zshuffle.c
index 6db510d..7fce672 100644
--- a/src/H5Zshuffle.c
+++ b/src/H5Zshuffle.c
@@ -208,7 +208,7 @@ H5Z__filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[]
/* Add leftover to the end of data */
if (leftover > 0) {
/* Adjust back to end of shuffled bytes */
- _dest -= (bytesoftype - 1); /*lint !e794 _dest is initialized */
+ _dest -= (bytesoftype - 1);
H5MM_memcpy((void *)_dest, (void *)_src, leftover);
}
} /* end if */
@@ -279,7 +279,7 @@ H5Z__filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[]
/* Add leftover to the end of data */
if (leftover > 0) {
/* Adjust back to end of shuffled bytes */
- _src -= (bytesoftype - 1); /*lint !e794 _src is initialized */
+ _src -= (bytesoftype - 1);
H5MM_memcpy((void *)_dest, (void *)_src, leftover);
}
} /* end else */