mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-26 04:31:34 +08:00
Add warning for sign comparison. (#93)
This commit is contained in:
parent
7daeac25c0
commit
69047ac1e4
@ -157,7 +157,6 @@ foreach(lib screen dom component)
|
|||||||
target_compile_options(${lib} PRIVATE "-pedantic")
|
target_compile_options(${lib} PRIVATE "-pedantic")
|
||||||
target_compile_options(${lib} PRIVATE "-Werror")
|
target_compile_options(${lib} PRIVATE "-Werror")
|
||||||
target_compile_options(${lib} PRIVATE "-Wmissing-declarations")
|
target_compile_options(${lib} PRIVATE "-Wmissing-declarations")
|
||||||
target_compile_options(${lib} PRIVATE "-Wno-sign-compare")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
@ -109,7 +109,7 @@ bool MenuBase::OnEvent(Event event) {
|
|||||||
bool MenuBase::OnMouseEvent(Event event) {
|
bool MenuBase::OnMouseEvent(Event event) {
|
||||||
if (!CaptureMouse(event))
|
if (!CaptureMouse(event))
|
||||||
return false;
|
return false;
|
||||||
for (int i = 0; i < boxes_.size(); ++i) {
|
for (int i = 0; i < int(boxes_.size()); ++i) {
|
||||||
if (!boxes_[i].Contain(event.mouse().x, event.mouse().y))
|
if (!boxes_[i].Contain(event.mouse().x, event.mouse().y))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ bool RadioboxBase::OnEvent(Event event) {
|
|||||||
bool RadioboxBase::OnMouseEvent(Event event) {
|
bool RadioboxBase::OnMouseEvent(Event event) {
|
||||||
if (!CaptureMouse(event))
|
if (!CaptureMouse(event))
|
||||||
return false;
|
return false;
|
||||||
for (int i = 0; i < boxes_.size(); ++i) {
|
for (int i = 0; i < int(boxes_.size()); ++i) {
|
||||||
if (!boxes_[i].Contain(event.mouse().x, event.mouse().y))
|
if (!boxes_[i].Contain(event.mouse().x, event.mouse().y))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ bool ToggleBase::OnEvent(Event event) {
|
|||||||
bool ToggleBase::OnMouseEvent(Event event) {
|
bool ToggleBase::OnMouseEvent(Event event) {
|
||||||
if (!CaptureMouse(event))
|
if (!CaptureMouse(event))
|
||||||
return false;
|
return false;
|
||||||
for (int i = 0; i < boxes_.size(); ++i) {
|
for (int i = 0; i < int(boxes_.size()); ++i) {
|
||||||
if (!boxes_[i].Contain(event.mouse().x, event.mouse().y))
|
if (!boxes_[i].Contain(event.mouse().x, event.mouse().y))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user