diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-14 15:31:42 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-14 15:31:42 +0200 |
commit | c495eb5102278a110c14bbffbf833ed436d1594d (patch) | |
tree | defb692755221bdbc18a37a24c56da84c823ae01 /platform/linuxbsd/x11/gl_manager_x11.h | |
parent | c78be12f429cfaab5fd1bfd35dab4c37a4f528dc (diff) | |
parent | efdff9cbc250d91dd91f8b0d1e3265a874e40e6f (diff) | |
download | redot-engine-c495eb5102278a110c14bbffbf833ed436d1594d.tar.gz |
Merge pull request #80615 from akien-mga/gcc-fix-Wmaybe-uninitialized-warnings
Fix GCC `-Wmaybe-uninitialized` warnings
Diffstat (limited to 'platform/linuxbsd/x11/gl_manager_x11.h')
-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; |