From d2337d93711937b46d0ebfce5ee277e5b20c823c Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Fri, 3 Jul 2020 20:24:38 -0700 Subject: [PATCH] Fixed warning about indexing literal string in GCC macOS infcover.c:378:56: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] infcover.c:378:56: note: use array indexing to silence this warning --- test/infcover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/infcover.c b/test/infcover.c index 9f98bd5c..41f71508 100644 --- a/test/infcover.c +++ b/test/infcover.c @@ -375,7 +375,7 @@ static void cover_support(void) { mem_setup(&strm); strm.avail_in = 0; strm.next_in = NULL; - ret = PREFIX(inflateInit_)(&strm, PREFIX2(VERSION) + 1, (int)sizeof(PREFIX3(stream))); + ret = PREFIX(inflateInit_)(&strm, &PREFIX2(VERSION)[1], (int)sizeof(PREFIX3(stream))); assert(ret == Z_VERSION_ERROR); mem_done(&strm, "wrong version"); -- 2.47.3