From 0584aeb7c0bebaa46738dc1cc81a3a7dc463fd17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Thu, 28 Jan 2016 18:46:36 +0100 Subject: [PATCH] Fix warnings --- configure.ac | 1 - src/kernel/kernel.cpp | 8 +++----- src/kernel/options.cpp | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index f27d8a1..1acdf86 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,6 @@ AC_PROG_CXX AM_PROG_CC_C_O AC_CONFIG_FILES([Makefile]) - # libqt3-mt:i386 # libqt3-mt-dev:i386 # qt3-dev-tools:i386 diff --git a/src/kernel/kernel.cpp b/src/kernel/kernel.cpp index 4db3eee..c6a9d17 100644 --- a/src/kernel/kernel.cpp +++ b/src/kernel/kernel.cpp @@ -205,7 +205,7 @@ void QKernel::loadConfig(const char * fname) std::vector hosts = config.getHosts(); - for (int i = 0; i < hosts.size(); i++) { + for (unsigned int i = 0; i < hosts.size(); i++) { ConnectList.append(new ConnectEntry(hosts[i].c_str())); } @@ -304,8 +304,6 @@ void QKernel::on_actionHelp_triggered() */ void QKernel::RunGraphModule(char *sk) { - char cmd[255]; - QString program = getHomeDir(); program += "/modules/loggraph"; @@ -737,9 +735,9 @@ void QKernel::IntMessage(int sock) void QKernel::WriteMessage(const char *msg) { int x; - int y; +// int y; x = desktop->textCursor().blockNumber(); - y = desktop->textCursor().columnNumber(); +// y = desktop->textCursor().columnNumber(); if (x > 100) { desktop->clear(); diff --git a/src/kernel/options.cpp b/src/kernel/options.cpp index 149e357..5dca839 100644 --- a/src/kernel/options.cpp +++ b/src/kernel/options.cpp @@ -85,7 +85,7 @@ void OptionsDialog::loadConfig(const char * fname) } std::vector hosts = config.getHosts(); - for (int i = 0; i < hosts.size(); i++) { + for (unsigned int i = 0; i < hosts.size(); i++) { connections->addItem(hosts[i].c_str()); } -- 2.30.2