Fix GCC -Wmaybe-uninitialized warnings
(cherry picked from commit efdff9cbc2
)
This commit is contained in:
parent
32b7664371
commit
cdce948473
|
@ -44,8 +44,8 @@ protected:
|
||||||
String _get_cache_path() { return cache_path; }
|
String _get_cache_path() { return cache_path; }
|
||||||
struct FileCache {
|
struct FileCache {
|
||||||
String path; // Local path (as in "folder/to/file.png")
|
String path; // Local path (as in "folder/to/file.png")
|
||||||
uint64_t server_modified_time; // MD5 checksum.
|
uint64_t server_modified_time = 0; // MD5 checksum.
|
||||||
uint64_t modified_time;
|
uint64_t modified_time = 0;
|
||||||
};
|
};
|
||||||
virtual bool _is_configured() { return !cache_path.is_empty(); }
|
virtual bool _is_configured() { return !cache_path.is_empty(); }
|
||||||
// Can be re-implemented per platform. If so, feel free to ignore get_cache_path()
|
// Can be re-implemented per platform. If so, feel free to ignore get_cache_path()
|
||||||
|
|
|
@ -74,17 +74,17 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GLDisplay {
|
struct GLDisplay {
|
||||||
GLDisplay() { context = nullptr; }
|
GLDisplay() {}
|
||||||
~GLDisplay();
|
~GLDisplay();
|
||||||
GLManager_X11_Private *context = nullptr;
|
GLManager_X11_Private *context = nullptr;
|
||||||
::Display *x11_display;
|
::Display *x11_display = nullptr;
|
||||||
XVisualInfo x_vi;
|
XVisualInfo x_vi = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
// just for convenience, window and display struct
|
// just for convenience, window and display struct
|
||||||
struct XWinDisp {
|
struct XWinDisp {
|
||||||
::Window x11_window;
|
::Window x11_window;
|
||||||
::Display *x11_display;
|
::Display *x11_display = nullptr;
|
||||||
} _x_windisp;
|
} _x_windisp;
|
||||||
|
|
||||||
LocalVector<GLWindow> _windows;
|
LocalVector<GLWindow> _windows;
|
||||||
|
|
Loading…
Reference in New Issue