https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69723
--- Comment #5 from Peter VARGA <developm...@faf-ltd.com> --- I do not understand what you mean with "Replace unused++ with unused = unused + 1". How ever. I checked my example code in Compiler Explorer with clang and clang generates a warning as it should be. OK. You was honest that this means a lot of work but it is a bug and of course everybody can live with it. https://goo.gl/5eaLw5