[Bug c/44478] -Wunused- but-set-variable is incredible noisy in kernel builds

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 9 10:52:00 GMT 2010



------- 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



More information about the Gcc-bugs mailing list