From a8ccc2aa89c78108566c67b9e853797ea451f9c8 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Fri, 24 May 2024 10:20:25 +0200 Subject: FIX GCC Warnings, added more checking to gcc flags --- modules/benchmark/zlib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/benchmark/zlib.c') 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); -- cgit v1.2.3