Skip to content

Commit

Permalink
sokol_gfx.h, sokol_app.h: fix a Mac specific warning when compiling a…
Browse files Browse the repository at this point in the history
…s 'pedantic' C++ (fixes floooh#644)
  • Loading branch information
floooh committed Mar 19, 2022
1 parent 3a389df commit f306862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sokol_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -2473,7 +2473,7 @@ typedef struct {
#if defined(_SAPP_MACOS) || defined(_SAPP_IOS)
// this is ARC compatible
#if defined(__cplusplus)
#define _SAPP_CLEAR(type, item) { item = (type) { }; }
#define _SAPP_CLEAR(type, item) { item = { }; }
#else
#define _SAPP_CLEAR(type, item) { item = (type) { 0 }; }
#endif
Expand Down
2 changes: 1 addition & 1 deletion sokol_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -15096,7 +15096,7 @@ _SOKOL_PRIVATE bool _sg_uninit_pass(sg_pass pass_id) {
#if defined(SOKOL_METAL)
// this is ARC compatible
#if defined(__cplusplus)
#define _SG_CLEAR(type, item) { item = (type) { }; }
#define _SG_CLEAR(type, item) { item = { }; }
#else
#define _SG_CLEAR(type, item) { item = (type) { 0 }; }
#endif
Expand Down

0 comments on commit f306862

Please sign in to comment.