From aa6a7e544df566edc1b0222fb9c08c0f66c0d0e6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 26 Sep 2019 20:22:27 +1000 Subject: [PATCH] Fix some clang warnings --- src/ncurses_ui.cc | 4 ++-- src/ncurses_ui.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 048896d5..3e1a4c6b 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -588,7 +588,7 @@ Optional NCursesUI::get_next_key() if (not c) return {}; - auto parse_key = [this](unsigned char c) -> Key { + auto parse_key = [](unsigned char c) -> Key { if (c == control('m') or c == control('j')) return {Key::Return}; if (c == control('i')) @@ -733,7 +733,7 @@ Optional NCursesUI::get_next_key() return {}; }; - auto parse_ss3 = [this]() -> Optional { + auto parse_ss3 = []() -> Optional { switch (get_char().value_or((unsigned char)0xff)) { case 'A': return Key{Key::Up}; diff --git a/src/ncurses_ui.hh b/src/ncurses_ui.hh index a8734af4..93aad324 100644 --- a/src/ncurses_ui.hh +++ b/src/ncurses_ui.hh @@ -15,7 +15,7 @@ namespace Kakoune { -class DisplayAtom; +struct DisplayAtom; struct NCursesWin;