diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-14 14:33:47 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-14 14:35:35 +0200 |
commit | efdff9cbc250d91dd91f8b0d1e3265a874e40e6f (patch) | |
tree | 346aff4ba291692f70b7be22a18e73d65ec8406f /platform/linuxbsd | |
parent | 0308422f461dce11339896249e23ff02d978bfa0 (diff) | |
download | redot-engine-efdff9cbc250d91dd91f8b0d1e3265a874e40e6f.tar.gz |
Fix GCC -Wmaybe-uninitialized warnings
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/x11/gl_manager_x11.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/linuxbsd/x11/gl_manager_x11.h b/platform/linuxbsd/x11/gl_manager_x11.h index 59e20fec45..d3a25506a8 100644 --- a/platform/linuxbsd/x11/gl_manager_x11.h +++ b/platform/linuxbsd/x11/gl_manager_x11.h @@ -74,17 +74,17 @@ private: }; struct GLDisplay { - GLDisplay() { context = nullptr; } + GLDisplay() {} ~GLDisplay(); GLManager_X11_Private *context = nullptr; - ::Display *x11_display; - XVisualInfo x_vi; + ::Display *x11_display = nullptr; + XVisualInfo x_vi = {}; }; // just for convenience, window and display struct struct XWinDisp { ::Window x11_window; - ::Display *x11_display; + ::Display *x11_display = nullptr; } _x_windisp; LocalVector<GLWindow> _windows; |