From 01b2d76baf23fbb251bb8dad784abbebcf734410 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Thu, 22 Aug 2019 10:25:09 +0700 Subject: [PATCH] stb_image.h: fix warning about unused function 'stbi__err' Fixes issue #746. --- stb_image.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stb_image.h b/stb_image.h index 196dfd5..b28e5a0 100644 --- a/stb_image.h +++ b/stb_image.h @@ -106,6 +106,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 @@ -881,11 +882,13 @@ STBIDEF const char *stbi_failure_reason(void) return stbi__g_failure_reason; } +#ifndef STBI_NO_FAILURE_STRINGS static int stbi__err(const char *str) { stbi__g_failure_reason = str; return 0; } +#endif static void *stbi__malloc(size_t size) {