aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/mainwindow.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-05 16:53:09 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-05 16:53:09 +0100
commit85110f7880e32d298ee2853b4c055c7aaa22662f (patch)
treedd7f3bc8f3f95e9c679a1bea86a8320d82280774 /qtmips_gui/mainwindow.cpp
parenta5506270bc42a950d94a05878d8adfc15cefb464 (diff)
downloadqtmips-85110f7880e32d298ee2853b4c055c7aaa22662f.tar.gz
qtmips-85110f7880e32d298ee2853b4c055c7aaa22662f.tar.bz2
qtmips-85110f7880e32d298ee2853b4c055c7aaa22662f.zip
Fix and suppress most of the warnings
Diffstat (limited to 'qtmips_gui/mainwindow.cpp')
-rw-r--r--qtmips_gui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp
index 92d1a74..6b8d19b 100644
--- a/qtmips_gui/mainwindow.cpp
+++ b/qtmips_gui/mainwindow.cpp
@@ -134,7 +134,7 @@ void MainWindow::set_speed() {
machine->set_speed(0);
}
-void MainWindow::closeEvent(QCloseEvent *event) {
+void MainWindow::closeEvent(QCloseEvent *event __attribute__((unused))) {
settings->setValue("windowGeometry", saveGeometry());
settings->setValue("windowState", saveState());
settings->sync();