Removed warnings

This commit is contained in:
xarkes 2017-10-24 10:18:16 +02:00
parent 4c971ef8e8
commit 638956b41b
7 changed files with 12 additions and 11 deletions

View File

@ -186,6 +186,8 @@ private slots:
private:
CutterCore *core;
PreviewWidget *previewDock;
Notepad *notepadDock;
DisassemblyWidget *disassemblyDock;
SidebarWidget *sidebarDock;
HexdumpWidget *hexdumpDock;
@ -195,8 +197,6 @@ private:
QDockWidget *calcDock;
Omnibar *omnibar;
SideBar *sideBar;
PreviewWidget *previewDock;
Notepad *notepadDock;
Configuration *configuration;
bool doLock;

View File

@ -9,8 +9,8 @@
AsmOptionsDialog::AsmOptionsDialog(QWidget *parent)
: QDialog(parent),
ui(new Ui::AsmOptionsDialog),
core(CutterCore::getInstance())
core(CutterCore::getInstance()),
ui(new Ui::AsmOptionsDialog)
{
ui->setupUi(this);

View File

@ -12,12 +12,13 @@
#include <QFileInfo>
#include <QFileDialog>
// TODO Get rid of MainWindow
OptionsDialog::OptionsDialog(MainWindow *main):
QDialog(0), // parent may not be main
analThread(this),
defaultAnalLevel(1),
core(CutterCore::getInstance()),
main(main),
core(CutterCore::getInstance()),
defaultAnalLevel(1),
ui(new Ui::OptionsDialog)
{
ui->setupUi(this);

View File

@ -79,7 +79,6 @@ void XrefsDialog::on_fromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int
Q_UNUSED(column);
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
RAnalFunction *fcn = this->core->functionAt(xref.to);
Core()->seek(xref.to);
this->close();
}
@ -89,7 +88,6 @@ void XrefsDialog::on_toTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int c
Q_UNUSED(column);
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
RAnalFunction *fcn = this->core->functionAt(xref.from);
Core()->seek(xref.from);
this->close();
}

View File

@ -14,7 +14,7 @@
#include <unistd.h>
#include <string.h>
void set_appimage_symlink(char* argv0)
void set_appimage_symlink()
{
char* path = realpath("/proc/self/exe", NULL);
char* i = strrchr(path, '/');
@ -109,7 +109,7 @@ int main(int argc, char *argv[])
// Hack to make it work with AppImage
#ifdef __unix__
set_appimage_symlink(argv[0]);
set_appimage_symlink();
#endif
int ret = a.exec();

View File

@ -547,6 +547,7 @@ duint DisassemblerGraphView::getInstrForMouseEvent(QMouseEvent* event)
bool DisassemblerGraphView::getTokenForMouseEvent(QMouseEvent* event, Token & tokenOut)
{
Q_UNUSED(event);
Q_UNUSED(tokenOut);
/* TODO
//Convert coordinates to system used in blocks
int xofs = this->horizontalScrollBar()->value();

View File

@ -147,6 +147,7 @@ void SidebarWidget::get_refs_data(RVA addr)
void SidebarWidget::fill_refs(QList<XrefDescription> refs, QList<XrefDescription> xrefs, QList<int> graph_data)
{
Q_UNUSED(graph_data);
this->xreFromTreeWidget_2->clear();
for (int i = 0; i < refs.size(); ++i)
{