From 29bbcd84147e287c501fbcbdb105d56e7aee3934 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Wed, 10 Feb 2021 23:42:34 +0100 Subject: sokol_gfx.h VS2015: disable both warning C4054 and C4055 --- sokol_gfx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sokol_gfx.h b/sokol_gfx.h index d85de83f..d9a9e4da 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -2502,7 +2502,8 @@ inline int sg_append_buffer(sg_buffer buf_id, const sg_range& data) { return sg_ #pragma warning(disable:4115) /* named type definition in parentheses */ #pragma warning(disable:4505) /* unreferenced local function has been removed */ #pragma warning(disable:4201) /* nonstandard extension used: nameless struct/union (needed by d3d11.h) */ -#pragma warning(disable:4055) /* 'type cast': from function pointer 'FARPROC' to data pointer 'void *' */ +#pragma warning(disable:4054) /* 'type cast': from function pointer */ +#pragma warning(disable:4055) /* 'type cast': from data pointer */ #endif #if defined(SOKOL_GLCORE33) || defined(SOKOL_GLES2) || defined(SOKOL_GLES3) -- cgit v1.2.3