From aa9e18d7fa55c018e20b9346f5b594295f3e59cd Mon Sep 17 00:00:00 2001 From: m_thread Date: Tue, 4 Mar 2014 23:51:44 +0100 Subject: [PATCH] OP-1170 One more compiler warning zapped. --- .../openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp index 7e50e38dc..ed095e5a4 100644 --- a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp +++ b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp @@ -246,7 +246,10 @@ void GCSControlGadget::gamepads(quint8 count) void GCSControlGadget::readUDPCommand() { - double pitch, yaw, roll, throttle; + double pitch = 0.0; + double yaw = 0.0; + double roll = 0.0; + double throttle = 0.0; while (control_sock->hasPendingDatagrams()) { QByteArray datagram;