From 1d4da07a1c33c9cc41df1090eaa70635c8bebe67 Mon Sep 17 00:00:00 2001
From: Lorenz Meier <lm@inf.ethz.ch>
Date: Tue, 22 Jul 2014 15:05:50 +0200
Subject: [PATCH] Fix compile errors

---
 qgroundcontrol.pro                       | 3 ++-
 src/qgcunittest/MockMavlinkFileServer.cc | 3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro
index a78152e..383124f 100644
--- a/qgroundcontrol.pro
+++ b/qgroundcontrol.pro
@@ -108,7 +108,8 @@ QT += network \
     sql \
     printsupport \
     webkitwidgets \
-    quick
+    quick \
+    quickwidgets
 
 #  testlib is needed even in release flavor for QSignalSpy support
 QT += testlib
diff --git a/src/qgcunittest/MockMavlinkFileServer.cc b/src/qgcunittest/MockMavlinkFileServer.cc
index 9a3ec9f..abb53b5 100644
--- a/src/qgcunittest/MockMavlinkFileServer.cc
+++ b/src/qgcunittest/MockMavlinkFileServer.cc
@@ -97,7 +97,6 @@ void MockMavlinkFileServer::_openCommand(QGCUASFileManager::Request* request)
     
     size_t cchPath = strnlen((char *)request->data, sizeof(request->data));
     Q_ASSERT(cchPath != sizeof(request->data));
-    Q_UNUSED(connected); // Fix initialized-but-not-referenced warning on release builds
     path = (char *)request->data;
     
     // Check path against one of our known test cases
@@ -284,4 +283,4 @@ void MockMavlinkFileServer::_emitResponse(QGCUASFileManager::Request* request)
     mavlink_msg_encapsulated_data_pack(250, 0, &mavlinkMessage, 0 /*_encdata_seq*/, (uint8_t*)request);
     
     emit messageReceived(NULL, mavlinkMessage);
-}
\ No newline at end of file
+}