msvc: set warning level to /W4 globally

And fix a bunch of warnings
This commit is contained in:
Danila Malyutin
2023-09-02 21:45:06 +04:00
parent 89a2d48cf8
commit 785e480b62
13 changed files with 17 additions and 20 deletions

View File

@ -194,7 +194,7 @@ QWidget* Widget::CreateRadioGroup(std::function<std::string()>& serializer,
return group;
}
const auto get_selected = [=]() -> u32 {
const auto get_selected = [=]() -> int {
for (const auto& [id, button] : radio_buttons) {
if (button->isChecked()) {
return id;