Mercurial > vim
changeset 26976:1435891c3fd1 v8.2.4017
patch 8.2.4017: gcc warns for misleading indent in Athena menu code
Commit: https://github.com/vim/vim/commit/a33737b6d80f5461c1c6c4c96b5bc4964a737927
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Thu Jan 6 12:35:31 2022 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jan 2022 13:45:03 +0100 |
parents | ae1e69d77cea |
children | b96cf6480624 |
files | src/gui_athena.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui_athena.c +++ b/src/gui_athena.c @@ -1159,7 +1159,9 @@ gui_mch_add_menu_item(vimmenu_T *menu, i 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;