diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 3e6e22e1..a39e0cfb 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -84,6 +84,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), core(CutterCore::getInstance()), notepadDock(nullptr), + pseudocodeDock(nullptr), asmDock(nullptr), calcDock(nullptr), omnibar(nullptr), @@ -99,7 +100,6 @@ MainWindow::MainWindow(QWidget *parent) : relocsDock(nullptr), commentsDock(nullptr), stringsDock(nullptr), - pseudocodeDock(nullptr), flagsDock(nullptr), dashboardDock(nullptr), gotoEntry(nullptr), diff --git a/src/dialogs/CommentsDialog.cpp b/src/dialogs/CommentsDialog.cpp index b44f9223..01a7367e 100644 --- a/src/dialogs/CommentsDialog.cpp +++ b/src/dialogs/CommentsDialog.cpp @@ -34,7 +34,7 @@ void CommentsDialog::setComment(const QString &comment) ui->textEdit->document()->setPlainText(comment); } -bool CommentsDialog::eventFilter(QObject *obj, QEvent *event) +bool CommentsDialog::eventFilter(QObject */*obj*/, QEvent *event) { if(event -> type() == QEvent::KeyPress) { diff --git a/src/dialogs/preferences/AsmOptionsWidget.cpp b/src/dialogs/preferences/AsmOptionsWidget.cpp index 2a7b0ac3..26e77fd5 100644 --- a/src/dialogs/preferences/AsmOptionsWidget.cpp +++ b/src/dialogs/preferences/AsmOptionsWidget.cpp @@ -9,7 +9,7 @@ #include "utils/Helpers.h" #include "utils/Configuration.h" -AsmOptionsWidget::AsmOptionsWidget(PreferencesDialog *dialog, QWidget *parent) +AsmOptionsWidget::AsmOptionsWidget(PreferencesDialog */*dialog*/, QWidget *parent) : QDialog(parent), ui(new Ui::AsmOptionsWidget) { diff --git a/src/dialogs/preferences/GeneralOptionsWidget.cpp b/src/dialogs/preferences/GeneralOptionsWidget.cpp index 2b373842..82e93c8e 100644 --- a/src/dialogs/preferences/GeneralOptionsWidget.cpp +++ b/src/dialogs/preferences/GeneralOptionsWidget.cpp @@ -9,7 +9,7 @@ #include "utils/Helpers.h" #include "utils/Configuration.h" -GeneralOptionsWidget::GeneralOptionsWidget(PreferencesDialog *dialog, QWidget *parent) +GeneralOptionsWidget::GeneralOptionsWidget(PreferencesDialog */*dialog*/, QWidget *parent) : QDialog(parent), ui(new Ui::GeneralOptionsWidget) { diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp index ef61a200..29c466aa 100644 --- a/src/menus/DisassemblyContextMenu.cpp +++ b/src/menus/DisassemblyContextMenu.cpp @@ -18,10 +18,10 @@ DisassemblyContextMenu::DisassemblyContextMenu(QWidget *parent) actionRename(this), actionRenameUsedHere(this), actionXRefs(this), + actionDisplayOptions(this), actionDeleteComment(this), actionDeleteFlag(this), actionDeleteFunction(this), - actionDisplayOptions(this), actionSetBaseBinary(this), actionSetBaseOctal(this), actionSetBaseDecimal(this), diff --git a/src/utils/SvgIconEngine.cpp b/src/utils/SvgIconEngine.cpp index 96c600a7..11c98c57 100644 --- a/src/utils/SvgIconEngine.cpp +++ b/src/utils/SvgIconEngine.cpp @@ -29,7 +29,7 @@ SvgIconEngine::SvgIconEngine(const QByteArray &svgData, QColor tintColor) this->svgData = qhelpers::applyColorToSvg(svgData, tintColor); } -void SvgIconEngine::paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) +void SvgIconEngine::paint(QPainter *painter, const QRect &rect, QIcon::Mode /*mode*/, QIcon::State /*state*/) { QSvgRenderer renderer(svgData); renderer.render(painter, rect); diff --git a/src/widgets/PseudocodeWidget.cpp b/src/widgets/PseudocodeWidget.cpp index 7dda87a8..4d84c327 100644 --- a/src/widgets/PseudocodeWidget.cpp +++ b/src/widgets/PseudocodeWidget.cpp @@ -22,7 +22,7 @@ PseudocodeWidget::PseudocodeWidget(QWidget *parent, Qt::WindowFlags flags) : connect(Core(), SIGNAL(functionRenamed(QString, QString)), this, SLOT(refreshPseudocode())); connect(Core(), SIGNAL(varsChanged()), this, SLOT(refreshPseudocode())); connect(Core(), SIGNAL(asmOptionsChanged()), this, SLOT(refreshPseudocode())); - connect(Core(), &CutterCore::instructionChanged, this, [this](RVA offset) { + connect(Core(), &CutterCore::instructionChanged, this, [this](/*RVA offset*/) { refreshPseudocode(); }); diff --git a/src/widgets/VisualNavbar.cpp b/src/widgets/VisualNavbar.cpp index 48eec01a..0facd0a4 100644 --- a/src/widgets/VisualNavbar.cpp +++ b/src/widgets/VisualNavbar.cpp @@ -275,8 +275,6 @@ void VisualNavbar::fillData() int w = this->graphicsView->width(); int h = this->graphicsView->height(); - RVA current_address = Core()->getOffset(); - double width_per_byte = (double)w/(double)totalMappedSize; xToAddress.clear(); double current_x = 0;