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:
@@ -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;
|
||||
});
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user