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 11:36:44 -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 #6 from jakub at gcc dot gnu dot org 2010-06-09 11:36 -------
Then it has nothing to do with the asm.
If the macro is widely used and very often sets a var that isn't used, all
you can do is add (void) cast to shut the warning up.
(void) (y = var >> 16);
in this case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44478