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

@@ -3670,7 +3670,7 @@ attch_ed_verify_props(void)
* Get parent of current object
*/
parent = obj_get_parent(ats->cur_object);
if (parent);
if (parent)
parent = obj_get_root(parent);
/*

View File

@@ -2634,11 +2634,11 @@ propP_popup_message(
/*
* Free help data strings
*/
if (help_data.help_text);
if (help_data.help_text)
XtFree(help_data.help_text);
if (help_data.help_volume);
if (help_data.help_volume)
XtFree(help_data.help_volume);
if (help_data.help_locationID);
if (help_data.help_locationID)
XtFree(help_data.help_locationID);
}
else