aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/zlib.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-05-24 10:20:25 +0200
committerhwspeedy <ns@bigbear.dk>2024-05-24 10:20:25 +0200
commita8ccc2aa89c78108566c67b9e853797ea451f9c8 (patch)
tree9499a58b04a6baf1ab4a0741f7a31d3ddbc0fbc8 /modules/benchmark/zlib.c
parent25c366a8074af72c0811a960b947302bed036669 (diff)
FIX GCC Warnings, added more checking to gcc flags
Diffstat (limited to 'modules/benchmark/zlib.c')
-rw-r--r--modules/benchmark/zlib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/benchmark/zlib.c b/modules/benchmark/zlib.c
index 2045969f..3f2c1291 100644
--- a/modules/benchmark/zlib.c
+++ b/modules/benchmark/zlib.c
@@ -35,15 +35,14 @@
static unsigned int zlib_errors = 0;
static gpointer zlib_for(void *in_data, gint thread_number) {
- char *compressed;
+ guchar *compressed;
uLong bound = compressBound(BENCH_DATA_SIZE);
- unsigned int i;
compressed = malloc(bound);
if (!compressed)
return NULL;
- char uncompressed[BENCH_DATA_SIZE];
+ guchar uncompressed[BENCH_DATA_SIZE];
uLong compressedBound = bound;
uLong destBound = sizeof(uncompressed);