From d851106f47314680fb619fb94f97878a7d5fbed6 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 27 Nov 2020 09:17:20 +0100 Subject: Prevent compilation warning about uninitialized variables. --- src/drivers/X11/Fl_X11_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx index 90a838126..539fdfdb3 100644 --- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx @@ -786,7 +786,7 @@ Fl_RGB_Image *Fl_X11_Screen_Driver::read_win_rectangle(int X, int Y, int w, int if (!image) { // fetch absolute coordinates - int dx, dy, sx, sy, sw, sh; + int dx = 0, dy = 0, sx = 0, sy = 0, sw = 0, sh = 0; Window child_win; if (win) { -- cgit v1.2.3