From 2762b410fed870cc5db29a4e34e4eedaaf84f368 Mon Sep 17 00:00:00 2001 From: Michaelangel007 Date: Tue, 30 Jun 2015 08:02:24 -0600 Subject: [PATCH] Fix unused vars warning in stbi_is_hdr_from_file stbi_is_hdr_from_callbacks --- stb_image.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stb_image.h b/stb_image.h index d0fa9c2..ea5cc9f 100644 --- a/stb_image.h +++ b/stb_image.h @@ -1153,6 +1153,7 @@ STBIDEF int stbi_is_hdr_from_file(FILE *f) stbi__start_file(&s,f); return stbi__hdr_test(&s); #else + STBI_NOTUSED(f); return 0; #endif } @@ -1165,6 +1166,8 @@ STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); return stbi__hdr_test(&s); #else + STBI_NOTUSED(clbk); + STBI_NOTUSED(user); return 0; #endif } -- GitLab