This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71402] -Wunused-variable warnings ignore initialization side effects
- From: "andysem at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 08 Jun 2016 20:25:30 +0000
- Subject: [Bug c++/71402] -Wunused-variable warnings ignore initialization side effects
- Auto-submitted: auto-generated
- References: <bug-71402-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71402
--- Comment #12 from andysem at mail dot ru ---
(In reply to Manuel LÃpez-IbÃÃez from comment #11)
> 5.3 has the bug I mentioned above. It makes the pragmas believe that, for
> this warning, the location is at the end of the file, which is after the
> pop. Perhaps you can trick gcc by placing another pragma ignored at the end
> of the file. But that will silence all warnings that suffer from this bug.
So that would effectively be equivalent to adding -Wno-unused-variable to the
command line, right? Only more obscure.