From 75fecefe770a1672ff57064ca827d71e44244d66 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 7 Sep 2021 22:10:26 +0700 Subject: [PATCH] <3 the CI, forgot header for gd_error and unused var, strict mode for the win :) --- src/gd_bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gd_bmp.c b/src/gd_bmp.c index 29a05ce..c67e45f 100644 --- a/src/gd_bmp.c +++ b/src/gd_bmp.c @@ -30,6 +30,7 @@ #include #include "gd.h" #include "gdhelpers.h" +#include "gd_errors.h" #include "bmp.h" static int compress_row(unsigned char *uncompressed_row, int length); @@ -326,7 +327,6 @@ static int _gdImageBmpCtx(gdImagePtr im, gdIOCtxPtr out, int compression) } while ((buffer_size = gdGetBuf(copy_buffer, 1024, out)) != EOF) { - int res; if (buffer_size == 0) { break; }