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:
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user