diff options
| author | Andre Weissflog <floooh@gmail.com> | 2024-09-20 17:52:34 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2024-09-20 17:52:34 +0200 |
| commit | 3311dc7909fd2042142eecdd3642f36153882eef (patch) | |
| tree | 0a93d39ce7a4a23a768522724c23542274c2126c /util/sokol_gl.h | |
| parent | 98849729ad6a9cfb1810edf401b2d5f1669ba905 (diff) | |
sokol_gl.h: fix a C-ism / C++ warning (using {0} for a struct init)
Diffstat (limited to 'util/sokol_gl.h')
| -rw-r--r-- | util/sokol_gl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sokol_gl.h b/util/sokol_gl.h index 654cb0f6..f2b32622 100644 --- a/util/sokol_gl.h +++ b/util/sokol_gl.h @@ -2919,7 +2919,8 @@ static void _sgl_destroy_context(sgl_context ctx_id) { // >>misc static sgl_error_t _sgl_error_defaults(void) { - sgl_error_t defaults = {0}; + sgl_error_t defaults; + _sgl_clear(&defaults, sizeof(defaults)); return defaults; } |