From 3311dc7909fd2042142eecdd3642f36153882eef Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Fri, 20 Sep 2024 17:52:34 +0200 Subject: sokol_gl.h: fix a C-ism / C++ warning (using {0} for a struct init) --- util/sokol_gl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3