UI: Calm Warnings With New Icons

Just calming warning with unused argument and
missing switch default.

Pull Request: https://projects.blender.org/blender/blender/pulls/123802
This commit is contained in:
Harley Acheson
2024-06-27 01:35:45 +02:00
committed by Harley Acheson
parent 9d4d1aea98
commit eed83b56d2
2 changed files with 3 additions and 1 deletions

View File

@@ -4783,7 +4783,7 @@ uiBut *uiDefButImage(
return but;
}
uiBut *uiDefButAlert(uiBlock *block, int icon, int x, int y, short width, short height)
uiBut *uiDefButAlert(uiBlock *block, int icon, int x, int y, short width, short /*height*/)
{
ImBuf *ibuf = UI_icon_alert_imbuf_get((eAlertIcon)icon, float(width));
if (ibuf) {

View File

@@ -2633,6 +2633,8 @@ ImBuf *UI_icon_alert_imbuf_get(eAlertIcon icon, float size)
case ALERT_ICON_INFO:
icon_id = ICON_INFO_LARGE;
break;
default:
icon_id = ICON_NONE;
}
if (icon_id == ICON_NONE) {