From 4bffebc5f0f1b69e1ce579cfffc24cc62c07dd08 Mon Sep 17 00:00:00 2001 From: Julian Raschke Date: Sat, 25 Nov 2017 17:23:33 +0800 Subject: [PATCH] Avoid warning about unused stbi__float_postprocess --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index a056138..0e8ac15 100644 --- a/stb_image.h +++ b/stb_image.h @@ -1103,7 +1103,7 @@ static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, return (stbi__uint16 *) result; } -#ifndef STBI_NO_HDR +#if !defined(STBI_NO_HDR) && !defined(STBI_NO_LINEAR) static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp) { if (stbi__vertically_flip_on_load && result != NULL) {