summaryrefslogtreecommitdiffstats
path: root/tools/test/perform/zip_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/perform/zip_perf.c')
-rw-r--r--tools/test/perform/zip_perf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/test/perform/zip_perf.c b/tools/test/perform/zip_perf.c
index 7820582..3cfe2cc 100644
--- a/tools/test/perform/zip_perf.c
+++ b/tools/test/perform/zip_perf.c
@@ -86,7 +86,9 @@ error(const char *fmt, ...)
va_start(ap, fmt);
HDfprintf(stderr, "%s: error: ", prog);
+ H5_GCC_CLANG_DIAG_OFF("format-nonliteral")
HDvfprintf(stderr, fmt, ap);
+ H5_GCC_CLANG_DIAG_ON("format-nonliteral")
HDfprintf(stderr, "\n");
va_end(ap);
HDexit(EXIT_FAILURE);
@@ -335,8 +337,8 @@ parse_size_directive(const char *size)
static void
fill_with_random_data(Bytef *src, uLongf src_len)
{
- register unsigned u;
- h5_stat_t stat_buf;
+ unsigned u;
+ h5_stat_t stat_buf;
if (HDstat("/dev/urandom", &stat_buf) == 0) {
uLongf len = src_len;
@@ -385,7 +387,7 @@ do_write_test(unsigned long file_size, unsigned long min_buf_size, unsigned long
Bytef *src;
for (src_len = min_buf_size; src_len <= max_buf_size; src_len <<= 1) {
- register unsigned long i, iters;
+ unsigned long i, iters;
iters = file_size / src_len;
src = (Bytef *)HDcalloc(1, sizeof(Bytef) * src_len);