This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/82784] Remove semicolon after "do {} while (0)" macros
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Oct 2017 14:15:26 +0000
- Subject: [Bug other/82784] Remove semicolon after "do {} while (0)" macros
- Auto-submitted: auto-generated
- References: <bug-82784-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82784
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
So the way it's used is correct ... but why bother with the do {...} while(0)
in that case? It could just use {...} instead.