mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +08:00
Add -Wextra
This commit is contained in:
parent
a87e70c96e
commit
32871fcc6b
@ -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)
|
||||||
|
@ -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::*)();
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user