]> granicus.if.org Git - vim/commitdiff
patch 8.2.4017: gcc warns for misleading indent in Athena menu code v8.2.4017
authorDominique Pelle <dominique.pelle@gmail.com>
Thu, 6 Jan 2022 12:35:31 +0000 (12:35 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 6 Jan 2022 12:35:31 +0000 (12:35 +0000)
Problem:    Gcc warns for misleading indent in Athena menu code.
Solution:   Add curlies around the two statements. (Dominique PellĂ©,
            closes #9480)

src/gui_athena.c
src/version.c

index 4da832b220c5c485161a044e20464338c97b1eb5..db13bd34f7a56a3a5990e91fb7da4b78f0af9115 100644 (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;
index dafef8ec9867d35a8e5a56d7d011dc463aa2708c..5776f3df18fdf24547f64d69d09ea4c540c8caaa 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4017,
 /**/
     4016,
 /**/