Fix a bunch of -Wempty-body warnings reported by clang

Many of these were real bugs, like:

if (cond);
   do_something

etc...

Others were just cosmetic - like placing the ';' on a separate line to
make the intention clear.
This commit is contained in:
Jon Trulson
2021-12-11 13:10:24 -07:00
parent 18e25ce273
commit dda11f0e38
11 changed files with 28 additions and 18 deletions

View File

@@ -417,9 +417,14 @@ DialogManager::forceUpdate( Widget w )
if ( !w )
return;
XtAppContext cxt=XtWidgetToApplicationContext( w );
for (diashell=w;!XtIsShell(diashell);diashell=XtParent(diashell));
for ( topshell=diashell;XtIsTopLevelShell( topshell );
topshell = XtParent( topshell ) );
for (diashell=w;
!XtIsShell(diashell);
diashell=XtParent(diashell))
;
for ( topshell=diashell;
XtIsTopLevelShell( topshell );
topshell = XtParent( topshell ) )
;
// if (XtIsRealized(diashell) && XtIsRealized(topshell)){
dpy=XtDisplay(diashell);