From: Rafał Długołęcki Date: Thu, 28 Jan 2016 17:46:36 +0000 (+0100) Subject: Fix warnings X-Git-Tag: 3.4-b1~33 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=0584aeb7c0bebaa46738dc1cc81a3a7dc463fd17;hp=b8e904864339eb035f94d53d1c63cdb84c6503a2;p=vlp.git Fix warnings --- 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()); }