mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
Fixes for a couple of trivial warnings (#676)
* Committing clang-format changes * Trivial warning fixes: * Removes an unused done target in H5Tbit.c * Add (void) to quiet "ignored return value" warnings in the generators (which generally ignore errors) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
2142359709
commit
bee09040d3
@ -268,7 +268,6 @@ H5T__bit_get_d(uint8_t *buf, size_t offset, size_t size)
|
||||
/* Set return value */
|
||||
ret_value = val;
|
||||
|
||||
done:
|
||||
FUNC_LEAVE_NOAPI(ret_value)
|
||||
} /* end H5T__bit_get_d() */
|
||||
|
||||
|
@ -277,7 +277,7 @@ gent_ub(const char *filename, size_t ub_size, size_t ub_fill)
|
||||
for (u = 0; u < ub_fill; u++)
|
||||
*bp++ = pattern[u % 10];
|
||||
|
||||
HDwrite(fd, buf, ub_size);
|
||||
(void)HDwrite(fd, buf, ub_size);
|
||||
|
||||
HDclose(fd);
|
||||
}
|
||||
@ -301,7 +301,7 @@ create_textfile(const char *name, size_t size)
|
||||
for (i = 0; i < size; i++)
|
||||
*bp++ = pattern[i % 10];
|
||||
|
||||
HDwrite(fd, buf, size);
|
||||
(void)HDwrite(fd, buf, size);
|
||||
|
||||
HDfree(buf);
|
||||
|
||||
@ -329,7 +329,7 @@ create_binfile(char *name, off_t size)
|
||||
for (i = 0; i < size; i++)
|
||||
*bp++ = (char)i & 0xff;
|
||||
|
||||
HDwrite(fd, buf, size);
|
||||
(void)HDwrite(fd, buf, size);
|
||||
|
||||
HDclose(fd);
|
||||
}
|
||||
|
@ -497,7 +497,7 @@ gen_err_refcount(const char *fname)
|
||||
attribute message */
|
||||
if ((fd = HDopen(fname, O_RDWR, 0633)) >= 0) {
|
||||
HDlseek(fd, 4520 + 24, SEEK_SET);
|
||||
HDwrite(fd, &val, 2);
|
||||
(void)HDwrite(fd, &val, 2);
|
||||
HDclose(fd);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user