From a3348b17fefebd993750db31d9cfe71f1d820695 Mon Sep 17 00:00:00 2001 From: Leon Bottou Date: Wed, 3 Oct 2012 15:44:08 -0700 Subject: chasing warnings. --- packages/qtgui/qtgui.cpp | 1 - qlua/qluaapplication.cpp | 3 +-- qlua/qluaconsole_unix.cpp | 2 +- 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); } -- cgit v1.2.3