From 128b3c6f4cefdf920fec90ad77d30dbe86636c41 Mon Sep 17 00:00:00 2001 From: Marko Banusic Date: Thu, 7 Sep 2023 16:51:50 +0200 Subject: [PATCH] Update vips.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When compiling from source on Ubuntu we get an error: # github.com/imgproxy/imgproxy/v3/vips vips.c: In function ‘vips_fix_float_tiff’: vips.c:247:3: warning: not enough variable arguments to fit a sentinel [-Wformat=] 247 | return vips_copy(in, out); | ^~~~~~ vips_copy has more arguments and call needs to be terminated with null pointer. This fixes that problem. --- vips/vips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vips/vips.c b/vips/vips.c index 4fe5c219..0c3de9c0 100644 --- a/vips/vips.c +++ b/vips/vips.c @@ -244,7 +244,7 @@ vips_fix_float_tiff(VipsImage *in, VipsImage **out) { ) return vips_fix_BW_float_tiff(in, out); - return vips_copy(in, out); + return vips_copy(in, out, NULL); } int