From ffc931a61c6f64821e9c174dfd849df69a25bd08 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 1 Jul 2019 10:41:58 +0200 Subject: Resolve all remaining warnings reported by GCC 6.3. Unresolved are drawRoundRect, QFontMetrics::width which are deprecated in newer Qt versions. Signed-off-by: Pavel Pisa --- qtmips_gui/terminaldock.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qtmips_gui/terminaldock.cpp') diff --git a/qtmips_gui/terminaldock.cpp b/qtmips_gui/terminaldock.cpp index 3dfd457..60271f9 100644 --- a/qtmips_gui/terminaldock.cpp +++ b/qtmips_gui/terminaldock.cpp @@ -41,6 +41,7 @@ #include "terminaldock.h" TerminalDock::TerminalDock(QWidget *parent, QSettings *settings) : QDockWidget(parent) { + (void)settings; top_widget = new QWidget(this); setWidget(top_widget); layout_box = new QVBoxLayout(top_widget); @@ -87,6 +88,7 @@ void TerminalDock::tx_byte(int fd, unsigned int data) } void TerminalDock::rx_byte_pool(int fd, unsigned int &data, bool &available) { + (void)fd; QString str = input_edit->text(); available = false; if (str.count() > 0) { -- cgit v1.2.3