From 69a9f4b8f7fc1a368663a15ea36103398f9ea537 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 10 Nov 2021 17:27:18 -0800 Subject: [PATCH] z_file_header: use an unsigned element type and mark 'const' Squashes a -Wconversion compiler warnings and this data is never modified. --- lib/gvc/gvdevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index 1948eb77c..5fea75809 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -35,7 +35,7 @@ #ifndef OS_CODE # define OS_CODE 0x03 /* assume Unix */ #endif -static char z_file_header[] = +static const unsigned char z_file_header[] = {0x1f, 0x8b, /*magic*/ Z_DEFLATED, 0 /*flags*/, 0,0,0,0 /*time*/, 0 /*xflags*/, OS_CODE}; static z_stream z_strm; -- 2.50.1