Skip to content

Commit

Permalink
sokol_gl.h: fix a C-ism / C++ warning (using {0} for a struct init)
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Sep 20, 2024
1 parent 9884972 commit 3311dc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/sokol_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3311dc7

Please sign in to comment.