diff options
| author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-03-22 00:17:18 -0300 |
|---|---|---|
| committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-03-22 00:17:18 -0300 |
| commit | 35d21c08813242002e31f1d9bbc45fed5a21ebde (patch) | |
| tree | 60bce83ab5f359d83ee2537977c306d1ba7eba2b /platform | |
| parent | f2df8c94b2e5ba6c4eee3515d1d30f36194ca803 (diff) | |
Fix several in-class initialization clang warning
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/osx/os_osx.h | 2 | ||||
| -rw-r--r-- | platform/osx/os_osx.mm | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/platform/osx/os_osx.h b/platform/osx/os_osx.h index 29935f197e..72ca8969d0 100644 --- a/platform/osx/os_osx.h +++ b/platform/osx/os_osx.h @@ -100,7 +100,7 @@ public: id context; CursorShape cursor_shape; - NSCursor *cursors[CURSOR_MAX] = { NULL }; + NSCursor *cursors[CURSOR_MAX]; MouseMode mouse_mode; String title; diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index d125ca5a67..56a6b5de23 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -2369,6 +2369,7 @@ OS_OSX *OS_OSX::singleton = NULL; OS_OSX::OS_OSX() { + memset(cursors, 0, sizeof(cursors)); key_event_pos = 0; mouse_mode = OS::MOUSE_MODE_VISIBLE; main_loop = NULL; |