From 21c57423ae4a3de32c359086ac91c12c5fe0de71 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 4 Jan 2023 16:33:44 +0100 Subject: [PATCH] Don't partially init monitor information gcc will complain, and we will fill out all fields later anyway. --- vncviewer/MonitorIndicesParameter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vncviewer/MonitorIndicesParameter.cxx b/vncviewer/MonitorIndicesParameter.cxx index 239a39f5..691a8470 100644 --- a/vncviewer/MonitorIndicesParameter.cxx +++ b/vncviewer/MonitorIndicesParameter.cxx @@ -197,7 +197,7 @@ std::vector MonitorIndicesParameter::fetchMoni // Start by creating a struct for every monitor. for (int i = 0; i < Fl::screen_count(); i++) { - Monitor monitor = {0}; + Monitor monitor; bool match; // Get the properties of the monitor at the current index; -- 2.39.5