Warn for deprecated. (#94)

This commit is contained in:
Arthur Sonzogni 2021-05-16 09:57:55 +02:00 committed by GitHub
parent 69047ac1e4
commit ca0d74ac01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -157,6 +157,7 @@ foreach(lib screen dom component)
target_compile_options(${lib} PRIVATE "-pedantic")
target_compile_options(${lib} PRIVATE "-Werror")
target_compile_options(${lib} PRIVATE "-Wmissing-declarations")
target_compile_options(${lib} PRIVATE "-Wdeprecated")
endif()
endforeach()

View File

@ -360,7 +360,7 @@ void ScreenInteractive::Loop(Component component) {
// On exit, reset cursor one line after the current drawing.
on_exit_functions.push(
[=] { std::cout << reset_cursor_position << std::endl; });
[this] { std::cout << reset_cursor_position << std::endl; });
disable({
DECMode::kCursor,