0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 8.2.4017: gcc warns for misleading indent in Athena menu code

Problem:    Gcc warns for misleading indent in Athena menu code.
Solution:   Add curlies around the two statements. (Dominique Pellé,
            closes #9480)
This commit is contained in:
Dominique Pelle
2022-01-06 12:35:31 +00:00
committed by Bram Moolenaar
parent 58493cfae2
commit a33737b6d8
2 changed files with 4 additions and 0 deletions

View File

@@ -1159,7 +1159,9 @@ gui_mch_add_menu_item(vimmenu_T *menu, int idx UNUSED)
XtSetArg(args[n], XtNinternalWidth, 1); n++;
XtSetArg(args[n], XtNborderWidth, 1); n++;
if (menu->image != 0)
{
XtSetArg(args[n], XtNbitmap, menu->image); n++;
}
}
XtSetArg(args[n], XtNhighlightThickness, 0); n++;
type = commandWidgetClass;

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4017,
/**/
4016,
/**/