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:
committed by
Harley Acheson
parent
9d4d1aea98
commit
eed83b56d2
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user