From: Dominique Pelle Date: Thu, 6 Jan 2022 12:35:31 +0000 (+0000) Subject: patch 8.2.4017: gcc warns for misleading indent in Athena menu code X-Git-Tag: v8.2.4017 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a33737b6d80f5461c1c6c4c96b5bc4964a737927;p=vim 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) --- diff --git a/src/gui_athena.c b/src/gui_athena.c index 4da832b22..db13bd34f 100644 --- a/src/gui_athena.c +++ b/src/gui_athena.c @@ -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; diff --git a/src/version.c b/src/version.c index dafef8ec9..5776f3df1 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4017, /**/ 4016, /**/