suppress/fix a few more GCC and MSVC warnings and errors

This commit is contained in:
Mathew Sutcliffe
2013-08-13 23:21:12 +01:00
parent d4279a8c28
commit a6756f2043
7 changed files with 14 additions and 7 deletions

View File

@@ -5,7 +5,9 @@
#include <QProcess>
#ifdef Q_OS_WIN
// for qdatetime, see here http://qt-project.org/forums/viewthread/22133
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h> // for Sleep
#endif

View File

@@ -19,7 +19,7 @@ Client::~Client()
{
}
void Client::onError(QAbstractSocket::SocketError error, QString message)
void Client::onError(QAbstractSocket::SocketError /* error */, QString message)
{
bAppWarning << "Socket error!";
}

View File

@@ -13,8 +13,10 @@
using namespace BlackMisc;
CDialogConnect::CDialogConnect(QWidget *parent) :
QDialog(parent), m_hasComConnection(false),
ui(new Ui::CDialogConnect), comclient(IContext::getInstance())
QDialog(parent),
ui(new Ui::CDialogConnect),
comclient(IContext::getInstance()),
m_hasComConnection(false)
{
ui->setupUi(this);

View File

@@ -7,6 +7,7 @@
#define BLACKMISC_AVIOADFSYSTEM_H
#include "blackmisc/aviomodulator.h"
#include <stdexcept>
namespace BlackMisc
{

View File

@@ -111,8 +111,8 @@ public:
bool isMagneticTrack() const
{
return this->m_magnetic;
QT_TRANSLATE_NOOP("Aviation", "magnetic");
QT_TRANSLATE_NOOP("Aviation", "true");
(void)QT_TRANSLATE_NOOP("Aviation", "magnetic");
(void)QT_TRANSLATE_NOOP("Aviation", "true");
}
/*!

View File

@@ -5,6 +5,7 @@
#include "blackmisc/mathmatrix3x3.h"
#include "blackmisc/mathmatrix3x1.h"
#include <typeinfo>
namespace BlackMisc
{

View File

@@ -14,6 +14,7 @@
#include <QtGlobal>
#include <QString>
#include <QLocale>
#include <typeinfo>
namespace BlackMisc
{
@@ -459,10 +460,10 @@ public:
{
qRegisterMetaType<MU>(typeid(MU).name());
qDBusRegisterMetaType<MU>();
qDBusRegisterMetaType<QList<MU>>();
qDBusRegisterMetaType<QList<MU> >();
qRegisterMetaType<PQ>(typeid(PQ).name());
qDBusRegisterMetaType<PQ>();
qDBusRegisterMetaType<QList<PQ>>();
qDBusRegisterMetaType<QList<PQ> >();
}
};