https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104044
Bug ID: 104044 Summary: Useless empty statements (across projects) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: roland.illig at gmx dot de Target Milestone: --- mn10300.c says: > break;; nvptx.c says: > tree r = NULL_TREE;; jit-playback.c says: > tree x = as_tree ();; These extra semicolons (and all the others in the whole tree) should be removed, as they don't add any value. Quite the opposite, they create an impression that the code were carelessly written. I'm only concerned about obviously useless semicolons. In particular, I have no problem with the empty statement in "while (i-- > 0) ;". Is there a GCC warning for useless empty statements like these? I saw that this was already reported as Bug 49053, but maybe your attitude towards this topic changed in the past 5 years. I stumbled upon these empty statements as I made the same mistake in my own code.