From 16f9f8e0a9c6216a04fe67aa5cb4e256e24a9099 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 23 Mar 2016 17:06:16 -0300 Subject: [PATCH] Clean unused variables / Fix QObject macro this simple patch cleans more than 500 warnings on my build and it should be really safe to apply since it basically remove unused variables. Signed-off-by: Tomaz Canabrava --- src/QGC.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/QGC.h b/src/QGC.h index e6660abb6..fec121197 100644 --- a/src/QGC.h +++ b/src/QGC.h @@ -69,17 +69,6 @@ namespace QGC const static int defaultSystemId = 255; const static int defaultComponentId = 0; -const QColor colorCyan(55, 154, 195); -const QColor colorRed(154, 20, 20); -const QColor colorGreen(20, 200, 20); -const QColor colorYellow(255, 255, 0); -const QColor colorOrange(255, 140, 0); -const QColor colorMagenta(255, 0, 55); -const QColor colorDarkWhite(240, 240, 240); -const QColor colorDarkYellow(180, 180, 0); -const QColor colorBackground("#050508"); -const QColor colorBlack(0, 0, 0); - /** * @brief Get the current ground time in microseconds. * @note This does not have microsecond precision, it is limited to millisecond precision. @@ -101,6 +90,7 @@ const static int MAX_FLIGHT_TIME = 60 * 60 * 24 * 21; class SLEEP : public QThread { + Q_OBJECT public: using QThread::sleep; using QThread::msleep; -- 2.22.0