From 3de984962fbba6ea20321ad928a1a48a808a31b8 Mon Sep 17 00:00:00 2001 From: ikrima Date: Thu, 4 Mar 2021 02:07:11 -0800 Subject: fix: looks like incorrect warning disable based on comment and commit details C4202 => nonstandard extension used : '...': prototype parameter in name list illegal [https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4202?view=msvc-160] C4204 => VS2015: nonstandard extension used: non-constant aggregate initializer [https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4204?view=msvc-160] --- sokol_gfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sokol_gfx.h b/sokol_gfx.h index 87276666..4013193a 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -644,7 +644,7 @@ typedef struct sg_range { // disabling this for every includer isn't great, but the warnings are also quite pointless #if defined(_MSC_VER) #pragma warning(disable:4221) /* /W4 only: nonstandard extension used: 'x': cannot be initialized using address of automatic variable 'y' */ -#pragma warning(disable:4202) /* VS2015: nonstandard extension used: non-constant aggregate initializer */ +#pragma warning(disable:4204) /* VS2015: nonstandard extension used: non-constant aggregate initializer */ #endif #if defined(__cplusplus) #define SG_RANGE(x) sg_range{ &x, sizeof(x) } -- cgit v1.2.3