Add -Wextra

This commit is contained in:
ArthurSonzogni 2019-06-30 23:59:27 +02:00
parent a87e70c96e
commit 32871fcc6b
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ foreach(lib screen dom component)
PRIVATE src PRIVATE src
) )
target_compile_features(${lib} PUBLIC cxx_std_17) target_compile_features(${lib} PUBLIC cxx_std_17)
target_compile_options(${lib} PRIVATE -Wall) target_compile_options(${lib} PRIVATE -Wall -Werror -Wextra)
endforeach() endforeach()
include(GNUInstallDirs) include(GNUInstallDirs)

View File

@ -27,7 +27,7 @@ class Container : public Component {
using EventHandler = bool (Container::*)(Event); using EventHandler = bool (Container::*)(Event);
bool VerticalEvent(Event event); bool VerticalEvent(Event event);
bool HorizontalEvent(Event event); bool HorizontalEvent(Event event);
bool TabEvent(Event event) { return false; } bool TabEvent(Event) { return false; }
EventHandler event_handler_; EventHandler event_handler_;
using RenderHandler = Element (Container::*)(); using RenderHandler = Element (Container::*)();

View File

@ -31,7 +31,7 @@ void OnExit(int signal) {
} }
std::function<void()> on_resize = []{}; std::function<void()> on_resize = []{};
void OnResize(int signal) { void OnResize(int /* signal */) {
on_resize(); on_resize();
} }