diff options
| author | ikrima <contact@ikrima.com> | 2021-03-04 02:07:11 -0800 |
|---|---|---|
| committer | ikrima <contact@ikrima.com> | 2021-03-04 02:08:18 -0800 |
| commit | 3de984962fbba6ea20321ad928a1a48a808a31b8 (patch) | |
| tree | fa411b0e188d6ad8805030a1289232ded5c861df | |
| parent | 4c56a2ee15d81cac91b738bb7e740c964dc6bd56 (diff) | |
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]
| -rw-r--r-- | sokol_gfx.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |