From 9ac71959cbb35dd0e24001ea11e2d89db08f099c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 15 Apr 2011 18:42:03 -0700 Subject: [PATCH] * lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;". --- lwlib/ChangeLog | 2 ++ lwlib/lwlib.c | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index d6a76a9647..cea02d7999 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@ -1,5 +1,7 @@ 2011-04-16 Paul Eggert + * lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;". + * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused. * xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing. diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index 290ce09130..90461c0ba5 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c @@ -422,7 +422,7 @@ safe_strcmp (const char *s1, const char *s2) (nc == STRUCTURAL_CHANGE ? "structural" : "???")))), \ nc, desc, a1, a2) #else -# define EXPLAIN(name, oc, nc, desc, a1, a2) +# define EXPLAIN(name, oc, nc, desc, a1, a2) ((void) 0) #endif @@ -912,8 +912,9 @@ destroy_one_instance (widget_instance *instance) xaw_destroy_instance (instance); else #endif - /* do not remove the empty statement */ - ; + { + /* Empty compound statement to terminate if-then-else chain. */ + } } free_widget_instance (instance); -- 2.20.1