diff --git a/src/lisp/lexer.cpp b/src/lisp/lexer.cpp index db14422c1..61eff52b9 100644 --- a/src/lisp/lexer.cpp +++ b/src/lisp/lexer.cpp @@ -44,7 +44,8 @@ namespace lisp nextChar(); } catch(EOFException& e) - {} + {(void)e; // avoid 'unreferenced local variable' warning + } } //----------------------------------------------------------------------------- diff --git a/src/user_config.cpp b/src/user_config.cpp index 6d4fa7f44..200628840 100644 --- a/src/user_config.cpp +++ b/src/user_config.cpp @@ -370,6 +370,7 @@ void UserConfig::loadConfig(const std::string& filename) } catch(std::exception& e) { + (void)e; // avoid warning about unreferenced local variable printf(_("Config file '%s' does not exist, it will be created.\n"), filename.c_str()); delete root; diff --git a/src/widget.cpp b/src/widget.cpp index 5651a48c8..73ba288cb 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -305,8 +305,6 @@ void Widget::update(const float DELTA) size_t line_start = 0; bool draw; bool out_of_rect = false; - float top, bottom; - int text_height; glEnable( GL_SCISSOR_TEST ); do