From df128b7995a3117a4b357b989eb325955d5e7a38 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Fri, 12 Sep 2014 03:53:36 -0700 Subject: [PATCH] update STBIR__UNUSED_PARAM to match stb_image.h version --- stb_image_resize.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stb_image_resize.h b/stb_image_resize.h index 7a228f9..8c648d7 100644 --- a/stb_image_resize.h +++ b/stb_image_resize.h @@ -403,7 +403,11 @@ typedef unsigned char stbir__validate_uint32[sizeof(stbir_uint32) == 4 ? 1 : -1] -#define STBIR__UNUSED_PARAM(s) s=s; +#ifdef _MSC_VER +#define STBIR__UNUSED_PARAM(v) (void)(v) +#else +#define STBIR__UNUSED_PARAM(v) (void)sizeof(v) +#endif // must match stbir_datatype static unsigned char stbir__type_size[] = {