From fe2d2e640bf7a196fd1fe1f2efb7d4ba6382ce4f Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 26 Aug 2011 01:46:57 -0500 Subject: Fix ambiguous 'else' warnings Signed-off-by: Yaakov Selkowitz Reviewed-by: Alan Coopersmith --- src/SimpleMenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/SimpleMenu.c') diff --git a/src/SimpleMenu.c b/src/SimpleMenu.c index 7104126..64fe3af 100644 --- a/src/SimpleMenu.c +++ b/src/SimpleMenu.c @@ -543,7 +543,7 @@ Cardinal *num_args; XDefineCursor(XtDisplay(new), XtWindow(new), smw_new->simple_menu.cursor); - if (smw_old->simple_menu.label_string !=smw_new->simple_menu.label_string) + if (smw_old->simple_menu.label_string !=smw_new->simple_menu.label_string) { if (smw_new->simple_menu.label_string == NULL) /* Destroy. */ XtDestroyWidget((Widget) smw_old->simple_menu.label); else if (smw_old->simple_menu.label_string == NULL) /* Create. */ @@ -554,6 +554,7 @@ Cardinal *num_args; XtSetArg(arglist[0], XtNlabel, smw_new->simple_menu.label_string); XtSetValues((Widget) smw_new->simple_menu.label, arglist, ONE); } + } if (smw_old->simple_menu.label_class != smw_new->simple_menu.label_class) XtAppWarning(XtWidgetToApplicationContext(new), -- cgit v1.2.3