From 9e45999a01471678001af1b2c292776cf30253ce Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 6 May 2017 11:11:30 -0700 Subject: [PATCH] Fix some warnings Two unused variables and one case of sign confusion. Signed-off-by: Dirk Hohndel --- core/configuredivecomputerthreads.cpp | 1 - desktop-widgets/divepicturewidget.cpp | 2 +- desktop-widgets/modeldelegates.cpp | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/configuredivecomputerthreads.cpp b/core/configuredivecomputerthreads.cpp index 39c3b5c63..ff592b717 100644 --- a/core/configuredivecomputerthreads.cpp +++ b/core/configuredivecomputerthreads.cpp @@ -373,7 +373,6 @@ static dc_status_t read_ostc4_settings(dc_device_t *device, DeviceDetails *m_dev dc_event_progress_t progress; progress.current = 0; progress.maximum = 23; - unsigned char hardware[1]; EMIT_PROGRESS(); diff --git a/desktop-widgets/divepicturewidget.cpp b/desktop-widgets/divepicturewidget.cpp index 92a61cba7..fcdd010da 100644 --- a/desktop-widgets/divepicturewidget.cpp +++ b/desktop-widgets/divepicturewidget.cpp @@ -31,7 +31,7 @@ void DivePictureWidget::doubleClicked(const QModelIndex &index) void DivePictureWidget::mousePressEvent(QMouseEvent *event) { - ulong doubleClickInterval = static_cast(qApp->styleHints()->mouseDoubleClickInterval()); + int doubleClickInterval = qApp->styleHints()->mouseDoubleClickInterval(); static qint64 lasttime = 0L; qint64 timestamp = QDateTime::currentDateTime().toMSecsSinceEpoch(); diff --git a/desktop-widgets/modeldelegates.cpp b/desktop-widgets/modeldelegates.cpp index 9ab02cd88..d22e7cbb5 100644 --- a/desktop-widgets/modeldelegates.cpp +++ b/desktop-widgets/modeldelegates.cpp @@ -113,7 +113,6 @@ struct CurrSelected { QWidget *ComboBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const { Q_UNUSED(option) - MainWindow *m = MainWindow::instance(); QComboBox *comboDelegate = new QComboBox(parent); comboDelegate->setModel(model); comboDelegate->setEditable(true);