From a0328bdb0373bda83a7b63900090871ddda38af5 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sat, 8 Jan 2022 16:04:11 +0000 Subject: [PATCH] qcustomsplot: Fix Clang Warnings [core.UndefinedBinaryOperatorResult] qcustomplot.cpp:34001:37: warning: The left operand of '-' is a garbage value [core.UndefinedBinaryOperatorResult] qcustomplot.cpp:34001:37: warning: The right operand of '-' is a garbage value [core.UndefinedBinaryOperatorResult] --- ui/qt/widgets/qcustomplot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/qt/widgets/qcustomplot.cpp b/ui/qt/widgets/qcustomplot.cpp index e28dbee324..89a52683df 100644 --- a/ui/qt/widgets/qcustomplot.cpp +++ b/ui/qt/widgets/qcustomplot.cpp @@ -33995,7 +33995,7 @@ void QCPPolarAxisAngular::mouseMoveEvent(QMouseEvent *event, const QPointF &star { doReplot = true; double angleCoordStart, radiusCoordStart; - double angleCoord, radiusCoord; + double angleCoord = 0.0, radiusCoord = 0.0; pixelToCoord(startPos, angleCoordStart, radiusCoordStart); pixelToCoord(event->pos(), angleCoord, radiusCoord); double diff = angleCoordStart - angleCoord;