diff options
| author | Andre Weissflog <floooh@gmail.com> | 2021-03-04 14:22:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-04 14:22:49 +0100 |
| commit | c5d55faa1036af9919bd28400e97d37548bb3789 (patch) | |
| tree | fa411b0e188d6ad8805030a1289232ded5c861df | |
| parent | 4c56a2ee15d81cac91b738bb7e740c964dc6bd56 (diff) | |
| parent | 3de984962fbba6ea20321ad928a1a48a808a31b8 (diff) | |
Merge pull request #489 from ikrima/fix-wrong-warn-disable
fix: wrong disable of msvc warning based on comment and commit details
| -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) } |