From: Matthew Fernandez Date: Thu, 11 Nov 2021 01:27:18 +0000 (-0800) Subject: z_file_header: use an unsigned element type and mark 'const' X-Git-Tag: 2.50.0~30^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69a9f4b8f7fc1a368663a15ea36103398f9ea537;p=graphviz z_file_header: use an unsigned element type and mark 'const' Squashes a -Wconversion compiler warnings and this data is never modified. --- 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;