This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44478] -Wunused- but-set-variable is incredible noisy in kernel builds
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2010 10:52:35 -0000
- Subject: [Bug c/44478] -Wunused- but-set-variable is incredible noisy in kernel builds
- References: <bug-44478-7834@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jakub at gcc dot gnu dot org 2010-06-09 10:52 -------
We don't warn on
void foo (void)
{
int dummy;
asm ("" : "=r" (dummy));
}
- the use in the asm is considered as a use, not just set.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44478