mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-26 04:31:34 +08:00
Add -Wextra
This commit is contained in:
parent
a87e70c96e
commit
32871fcc6b
@ -68,7 +68,7 @@ foreach(lib screen dom component)
|
||||
PRIVATE src
|
||||
)
|
||||
target_compile_features(${lib} PUBLIC cxx_std_17)
|
||||
target_compile_options(${lib} PRIVATE -Wall)
|
||||
target_compile_options(${lib} PRIVATE -Wall -Werror -Wextra)
|
||||
endforeach()
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
@ -27,7 +27,7 @@ class Container : public Component {
|
||||
using EventHandler = bool (Container::*)(Event);
|
||||
bool VerticalEvent(Event event);
|
||||
bool HorizontalEvent(Event event);
|
||||
bool TabEvent(Event event) { return false; }
|
||||
bool TabEvent(Event) { return false; }
|
||||
EventHandler event_handler_;
|
||||
|
||||
using RenderHandler = Element (Container::*)();
|
||||
|
@ -31,7 +31,7 @@ void OnExit(int signal) {
|
||||
}
|
||||
|
||||
std::function<void()> on_resize = []{};
|
||||
void OnResize(int signal) {
|
||||
void OnResize(int /* signal */) {
|
||||
on_resize();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user