From 4a4c9deaac011fd307e15e7efc4a4debccdcdbe7 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Wed, 15 May 2019 14:12:52 +0700 Subject: [PATCH] =?UTF-8?q?stb=5Fimage:=20fix=20warning=20(unused=20parame?= =?UTF-8?q?ter=20=E2=80=98bpc=E2=80=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes issue #745. --- stb_image.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stb_image.h b/stb_image.h index a6202a3..ee93c6a 100644 --- a/stb_image.h +++ b/stb_image.h @@ -105,6 +105,7 @@ RECENT REVISION HISTORY: Julian Raschke Gregory Mullen Baldur Karlsson github:poppolopoppo Christian Floisand Kevin Schmidt JR Smith github:darealshinji Blazej Dariusz Roszkowski github:Michaelangel007 + Matvey Cherevko */ #ifndef STBI_INCLUDE_STB_IMAGE_H @@ -1022,6 +1023,8 @@ static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int re #endif #ifndef STBI_NO_PSD if (stbi__psd_test(s)) return stbi__psd_load(s,x,y,comp,req_comp, ri, bpc); + #else + STBI_NOTUSED(bpc); #endif #ifndef STBI_NO_PIC if (stbi__pic_test(s)) return stbi__pic_load(s,x,y,comp,req_comp, ri);