Fix all the compile warnings that occur on Mac.

(Except the OpenGL deprecation warning and some warnings coming from Boost.Process.)
This commit is contained in:
2025-03-08 20:43:04 -05:00
parent 67fbb4fae5
commit 5cfc6ba328
17 changed files with 41 additions and 27 deletions

View File

@@ -1185,7 +1185,7 @@ void preview_dialog_xml(fs::path dialog_xml) {
// Make every clickable control's click event close the dialog
for (auto control : dialog){
try{
control.second->attachClickHandler([](cDialog& me, std::string item_hit, eKeyMod mod) -> bool {
control.second->attachClickHandler([](cDialog& me, std::string, eKeyMod) -> bool {
me.toast(false);
return true;
});

View File

@@ -324,5 +324,8 @@ void cButton::initPreset() {
case BTN_TRAIT:
setText("Race|& Traits");
break;
default:
// Other button types don't have prebaked text, so do nothing
break;
}
}