Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/qtlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Bottou <leon@bottou.org>2012-10-04 02:44:08 +0400
committerLeon Bottou <leon@bottou.org>2012-10-04 02:44:08 +0400
commita3348b17fefebd993750db31d9cfe71f1d820695 (patch)
treea396f5796edeacd75d5d384b68411a756e7c693c
parent7b6002cc48366feaf59c523b7b568fd52abfc53c (diff)
chasing warnings.
-rw-r--r--packages/qtgui/qtgui.cpp1
-rw-r--r--qlua/qluaapplication.cpp3
-rw-r--r--qlua/qluaconsole_unix.cpp2
3 files changed, 2 insertions, 4 deletions
diff --git a/packages/qtgui/qtgui.cpp b/packages/qtgui/qtgui.cpp
index 3331c20..720ae5c 100644
--- a/packages/qtgui/qtgui.cpp
+++ b/packages/qtgui/qtgui.cpp
@@ -1731,7 +1731,6 @@ qpen_fromtable(lua_State *L)
QMetaEnum m_penstyle = f_enumerator("PenStyle");
QMetaEnum m_capstyle = f_enumerator("PenCapStyle");
QMetaEnum m_joinstyle = f_enumerator("PenJoinStyle");
- QMetaEnum m_style = f_enumerator("BrushStyle");
const int t_color = QMetaType::QColor;
const int t_brush = QMetaType::QBrush;
if (f_optflag(L, 1, "style", m_penstyle))
diff --git a/qlua/qluaapplication.cpp b/qlua/qluaapplication.cpp
index a7937f7..f70c8df 100644
--- a/qlua/qluaapplication.cpp
+++ b/qlua/qluaapplication.cpp
@@ -463,7 +463,6 @@ QLuaApplication::Private::processArguments(int argc, char **argv)
{
bool has_e = false;
bool has_v = false;
- bool has_i = false;
bool stdinmode = false;
// Obtain and lock lua
@@ -499,7 +498,7 @@ QLuaApplication::Private::processArguments(int argc, char **argv)
break;
else if (s[2])
return printBadOption(s);
- has_i = interactive = ttyConsole = true;
+ interactive = ttyConsole = true;
theConsole->setCtrlCHandler(QLuaConsole::ctrlCBreak);
theConsole->setPrintCapturedOutput(true);
break;
diff --git a/qlua/qluaconsole_unix.cpp b/qlua/qluaconsole_unix.cpp
index 3e48112..6ecb517 100644
--- a/qlua/qluaconsole_unix.cpp
+++ b/qlua/qluaconsole_unix.cpp
@@ -769,7 +769,7 @@ void
QLuaConsole::Private::command(Command c)
{
char command = (char)c;
- ::write(commandPipe[1], &command, 1);
+ (void) ::write(commandPipe[1], &command, 1);
}